Linux Command Reference
Practical guides to the commands you'll use every day. Each one explains the syntax, the options that matter, real examples with context — and includes a live terminal so you can try the command as you read.
List the contents of a directory, with options for hidden files, long format, sorting and more.
cdMove between directories: absolute and relative paths, home shortcut, and jumping back.
pwdShow the absolute path of the directory you are currently in.
mkdirCreate one or many directories, including whole nested paths with -p.
touchCreate empty files instantly, or update the timestamps of existing ones.
rmDelete files and directories — and understand -r, -f and why there is no trash bin.
cpCopy files and whole directory trees, preserving attributes when needed.
mvMove files between directories and rename them — the same operation in Linux.
catPrint file contents, number lines, and join multiple files together.
grepFind lines matching a pattern in files or piped input — the workhorse of text search.
findLocate files anywhere in a directory tree by name, type, size, date — and act on them.
chmodChange file permissions with numeric (755, 644) and symbolic (u+x) modes — clearly explained.
echoPrint text and variables, and write or append to files with > and >>.
head & tailPrint the first or last lines of a file — including live log following with tail -f.
tarCreate and extract archives: tar.gz, tar.bz2 — with the flag combinations finally explained.
sshLog into remote machines, run remote commands, use keys instead of passwords, and tunnel ports.
curlDownload files, test APIs, send POST requests with JSON, and inspect headers.
wgetDownload files and whole sites, resume interrupted transfers, and fetch in the background.
psSee what is running, find a process ID, and combine with grep to hunt down a program.
killTerminate processes politely or forcibly — and understand what -9 really does.
df & duSee free space per filesystem and find what is eating your disk, directory by directory.
lnMake one file reachable from several paths — and understand symlinks vs hard links.
sedStream-edit text: substitute, delete lines, and edit files in place with -i.
awkPull columns out of any output, filter rows, and compute sums — the shell's spreadsheet.
cutSlice fields or character ranges out of each line — quick column extraction for delimited data.
xargsTurn a list of items into command arguments — the glue between pipelines and commands.
chownAssign files to users and groups — the other half of Linux permissions.
historyList, search and re-run previous commands — plus Ctrl+R, !! and the tricks that save hours.
pingCheck whether a host is reachable and measure round-trip latency.
ipThe modern tool for addresses, links and routes — replacing ifconfig and route.
ssSee listening ports, active connections and which process owns each socket.
digAsk DNS questions directly: A, MX, TXT records, and which server answered.
rsyncSync directories locally or over SSH, transferring only what changed.
scpThe quickest way to move a file to or from a remote machine.
top & htopThe live dashboard: CPU, memory, load average and the processes consuming them.
freeRAM and swap at a glance — and how to read "available" correctly.
systemctlStart, stop, enable and inspect services — the control panel of modern Linux.
journalctlQuery the system journal: by service, time window, priority — and follow live.
sudo & suTemporary privilege, audited — and why sudo won everywhere.
aptSearch, install, upgrade and remove packages — plus the dnf/pacman equivalents.
crontabRun commands on a schedule — and read the five-field syntax fluently.
teeSplit a stream: watch output live while saving a copy — and write files with sudo.
trCharacter-level transforms in pipelines: case, delete, squeeze, sanitize.
uniqDeduplicate adjacent lines and count occurrences — sort's inseparable partner.
diffSee exactly what changed between two files or trees — the language of patches.
lessThe standard pager: scroll, search, jump — and follow logs from inside.
gzip & zipSingle-file compression (gzip family) vs portable archives (zip) — and when each.
env & exportHow configuration flows into processes — PATH, export, and why edits "don't stick".
aliasName your habits: shortcuts, safer defaults, and where to keep them.
jobs, & and nohupRun things in the background, juggle them, and keep them alive after logout.
sha256sum & md5sumFingerprint files, verify downloads, and prove two files are identical.
which & typeWhich binary actually runs when you type a name — and unmask aliases.