Linux Cheat Sheet

Every Linux command in the library, on one page. Search, filter by category, or jump to a full command reference for detailed examples.

CommandSyntaxDescription
lsls [-la] [<path>]Lists directory contents.
cdcd <path>Changes the current working directory.
grepgrep [-r] [-i] <pattern> <file>Searches text for lines matching a pattern.
findfind <path> -name <pattern>Searches a directory tree for files matching given criteria.
chmodchmod <mode> <file>Changes a file or directory's permission bits.
chownchown <user>:<group> <file>Changes the owning user and/or group of a file.
psps auxReports a snapshot of currently running processes.
killkill [-9] <pid>Sends a signal (by default SIGTERM) to a process, typically to stop it.
toptopShows a live, continuously-updating view of running processes and system resource usage.
dfdf -hReports disk space usage for mounted filesystems.
sshssh <user>@<host> [-i <key-file>]Opens a secure shell session on a remote host.