Linux
The foundation everything else is built on. These commands work on practically every Linux distribution and most of them on macOS too.
38 tools · 513 commands
Files & Directories
ls
Lists directory contents with sizes, permissions, owners, timestamps and hidden files.
19 commandsfilesdirectoriescd
The shell built-in that changes the current directory, including shortcuts for home, previous and parent directories.
13 commandsnavigationshell built-inpwd
Prints the full path of the current working directory, optionally resolving symbolic links.
6 commandsnavigationcp
Copies files and directories, preserving attributes when asked.
12 commandsfilesmv
Moves or renames files and directories.
10 commandsfilesrm
Removes files and directories. There is no recycle bin — deletion is immediate.
11 commandsfilesdeletionmkdir
Creates directories, including parent paths and with specific permissions.
8 commandsdirectorieschmod
Changes file permissions using symbolic or octal modes, including setuid, setgid and sticky bits.
17 commandspermissionssecuritychown
Changes the owner and group of files and directories.
10 commandspermissionsownershiptar
Creates and extracts archives, with gzip, bzip2, xz or zstd compression.
13 commandsarchivescompression
Text Processing
cat
Concatenates files and prints them to standard output — view, combine and create files.
13 commandsfilestextless
A pager for viewing large files and command output one screen at a time, with search and follow mode.
12 commandspagertexthead
Prints the first lines or bytes of files — quick previews of logs and data.
8 commandstextfilestail
Prints the last lines of files and follows them as they grow — the standard way to watch logs.
9 commandslogstextgrep
Searches text for lines matching a pattern, with regular expressions, recursion and context.
21 commandssearchregexfind
Searches the directory tree by name, type, size, time, owner or permissions — and runs actions on matches.
22 commandssearchfilesawk
A pattern-scanning language for column-based text: extract fields, compute totals and reformat output.
15 commandstext processingcolumnssed
A stream editor for filtering and transforming text: substitutions, deletions and in-place file edits.
16 commandstext processingregexcut
Extracts columns, fields or characters from each line of input.
9 commandstext processingcolumnssort
Sorts lines of text alphabetically, numerically, by field or by human-readable size.
14 commandstext processinguniq
Filters or counts adjacent duplicate lines — usually paired with sort.
9 commandstext processingcountingwc
Counts lines, words, characters and bytes in files or input.
10 commandscountingtext
Processes & Services
ps
Reports a snapshot of running processes, with owners, resource usage and full command lines.
16 commandsprocessestriagetop
A live, sortable view of processes and system load, CPU and memory.
15 commandsprocessesperformancekill
Sends signals to processes — terminate gracefully, force-kill, reload or pause.
13 commandsprocessessignalssystemctl
Controls systemd: start, stop, enable and inspect services, timers and the boot target.
19 commandsservicessystemdjournalctl
Queries the systemd journal: logs by service, boot, time range, priority and more.
21 commandslogssystemd
System & Users
df
Reports free and used disk space on mounted file systems.
8 commandsdiskstoragedu
Estimates how much space files and directories use — find what is filling a disk.
11 commandsdiskstoragefree
Shows total, used and available memory and swap.
10 commandsmemoryperformancewhoami
Prints the effective user name — the first question after landing a shell.
13 commandsusersprivilegesu
Switches to another user (root by default) in a new shell, optionally as a login shell or for a single command.
12 commandsusersprivilegehistory
The shell built-in that lists, searches and re-runs previous commands, and manages the history file.
16 commandsshell built-inforensics
Networking
Package Managers
APT
Debian and Ubuntu’s package manager: install, update, search and remove software and inspect package sources.
20 commandspackagesDebianDNF
The package manager for Fedora, RHEL and derivatives: install, update, query and roll back packages.
19 commandspackagesFedorapacman
Arch Linux’s package manager: sync, install, upgrade, query and clean packages.
15 commandspackagesArch Linux