Linux Terminal Cheat Sheet This document is based off the Linux Bash Shell Cheat Sheet PDF (archived) here from 2011: https://web.archive.org/web/20111018212827/http://dl.dropbox.com/u/397277/bash_shell_cheat_sheetV2.pdf An active re-upload of the PDF can be found here: https://oit.ua.edu/wp-content/uploads/2020/12/Linux_bash_cheat_sheet-1.pdf The original Cheat Sheet was made by Raph D., and was available on their blog (archived) here: https://web.archive.org/web/20120106085933/http://freeworld.posterous.com/ This document is intended to be viewed with a monospace font and without line wrapping. It was made to improve upon the original by providing more concise details, more information, and consistent formatting, as well as updating outdated information and changing examples. Legend: | a number will be appended to indicate that they can be different, e.g. , | | <\n> indicates a new line, also indicated either by describing a newline character or using multiple lines in the document | is how multiple options are shown | is the path to the file | is the name of the file, excluding file extension | is the path to a directory, it should be inside '' or "" if the path includes whitespaces or other special characters | is any valid terminal command | can be any valid whole number, or with decimals or other restrictions if specified | can be the name of any valid package in a package repository |
can be any valid URL or IP address | is the name of an archive file, including file extension | can be almost any string of characters | can be almost any positive integer and can have a unit (k, M, G, etc.) appended to the end | can be any valid disk path (such as /dev/sda) | can be any valid disk or partition path (such as /dev/nvme0n1p1 or /dev/sdb) | can be a file or directory acting as a source | can be a file or directory acting as a destination |