Command Line Cheat Sheet

I started this post years ago to collect commands I need from time to time, but it never got published. That said, years later I still need such a resource so I figured I would post this fairly idiosyncratic resource  as a personal guide that I hope to update and maybe even organizing over time. I kept most of these as bookmarks in my Known site, but that is proving increasingly untenable as a useful resource. Anyway, here it is, and if you have any favorites I might benefit from share away—not to mention any I forgot Tim 🙂

Command for importing existing installs into Installatron:

Command for listing IP addresses hitting a server: 

List all IP addresses connected to your Server: 

Grep a domain in a cPanel server’s email logs:

Fix permissions for a cpanel account

Display last portion of a file:

Import a MySQL database:

Dump a MySQL database:

Restart Shibboleth:

Restart MySQL:

Restart Apache:

Restart Nginx:

Changing ownsership permissions recursively:


Show Docker container names:

Bootstrap a container (taken from this post on spinning up Discourse instance):

Start the container instance (taken from this post on spinning up Discourse instance):

Example of Rsyncing from local computer to AWS EC2 instance (update-this guide worked well):

SCP command to copy locals files to a remote server:

This entry was posted in sysadmin and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.