Cheat Sheet

Linux Commands Cheat Sheet

  • By
    Burr Sutter
  • Published: 2017-03-24
Cover image for the Linux Commands cheat sheet
Linux Commands Cheat Sheet
Easy to use shortcuts for developers

Whether you are new to Linux or have years of experience, you may find yourself encountering tasks you haven’t done lately. That is where the cheat sheet can help.

In this Linux Commands Cheat Sheet find:

  • Basic to more advanced shortcuts.
  • Screenshots to help you verify you are doing it correctly.
  • Tips from ssh to tar -xf somefile.tar.qz we’ve got you covered.

Taken from the personal cheat sheets of the Red Hat Developer Program team for you to save or print to take with you.

Cheat Sheet Excerpt

ssh [ip or hostname] “vagrant ssh” in the same directory as the Vagrantfile to shell into the box/machine (assumes you have successfully “vagrant up”)
Secure shell, an encrypted network protocol allowing for remote login and command execution
On Windows: PuTTY and WinSCP
An “ssh.exe” is also available via Cygwin as well as with a Git installation.
pwd
Print Working Directory
Displays the full path name
whoami
Displays your logged in user id
cd /
cd target
cd ~
Change directory to the root of the filesystem
Change directory to “target” directory
Change directory to your home directory
ls
ls -l
ls -la
Directory listing
Long listing, displays file ownership
Displays hidden files/directories
Want to see more? Get the full cheat sheet.

Comments