Can’t remember the name of a command? No problem — this index is organized by
what you want to do , not by section. Find your task below and jump straight
to the command’s guide.
Tip: the built-in search bar (top of the sidebar) also indexes every page.
But if you know the task and not the tool, this page is the fastest route.
Command One-liner
pwd Print the directory I’m currently in
cd Change the current directory
ls List the files and directories in a location
tree Show directories as an indented tree
cat Print a whole file to the screen
less Read a large file one screen at a time
more Page through a file, the classic way
Command One-liner
mkdir Create new directories
touch Create an empty file or update a timestamp
cp Copy files and directories
mv Move or rename files and directories
ln Create hard and symbolic links
tee Write command output to a file (and the screen at once)
echo Print a line of text (handy for writing files)
printf Formatted printing, the precise cousin of echo
Command One-liner
rmdir Remove empty directories
rm Remove files (and directories with the right flags)
Command One-liner
find Search for files by name, size, date, and more
locate Quick file lookup from a prebuilt database
which Show which executable the shell would run
whereis Locate a program’s binary, source, and man page
type Tell you what a command name actually is
lsof List which files processes have open (find a file by program)
Command One-liner
grep Find lines matching a pattern
sed Stream-edit text with substitutions
awk Pattern scanning and data extraction
less Search a large file interactively with /
diff Compare two files line by line
cmp Compare two files byte by byte
Command One-liner
sort Sort lines of text
uniq Report or remove duplicate lines
wc Count lines, words, and bytes
cut Extract columns from text
paste Merge lines of files side by side
tr Translate or delete characters
xargs Build and run commands from input
Command One-liner
Redirection Send stdout/stderr to files with > and <
Pipes Chain commands together with |
tee Split output to a file and the screen
stdin, stdout & stderr The three standard streams, explained
Command One-liner
ps Snapshot of current processes
top Live, built-in process monitor
htop Colorful, interactive process viewer
pgrep Find a process by name and get its PID
jobs List the shell’s background jobs
Command One-liner
kill Send a signal to a process by PID
killall Kill processes by name
pkill Kill processes matching a pattern
Command One-liner
bg Resume a stopped job in the background
fg Bring a job back to the foreground
nohup Run a command immune to hangups
wait Wait for a background job to finish
systemd units Run services properly with systemd
nice Start a process with a given priority
renice Change a running process’s priority
Command One-liner
watch Re-run a command periodically and watch the output
time Measure how long a command takes
uptime How long the system has been up, and load averages
free Memory usage at a glance
vmstat Kernel-level virtual memory statistics
iostat CPU and input/output statistics
dmesg The kernel ring buffer
journalctl Query the systemd journal
The /var/log Tour Where the classic log files live
Command One-liner
uname Print system and kernel information
hostnamectl Show and change the system hostname
df Report file system disk space usage
du Estimate file and directory space usage
date Print or set the date and time
cal Print a calendar
Command One-liner
man Read the manual page for any command
info The GNU hyperlinked alternative to man
history Recall and reuse previous commands
Keyboard Shortcuts Speed up life at the prompt
Shell Scripting Write your own commands as scripts
Command One-liner
chmod Change who can read, write, and execute a file
chown Change a file’s owner and group
chgrp Change a file’s group
umask Set the default permissions for new files
Command One-liner
sudo Run a single command as another user
su Switch to another user account
id Show your user and group IDs
whoami Print the current username
passwd Change a password
useradd Create a new user account
/etc/passwd The file that defines every user
Command One-liner
apt The Debian/Ubuntu package manager
dnf The Fedora/RHEL package manager (and legacy yum)
pacman The Arch Linux package manager
snap Ubuntu’s containerized app packages
flatpak Desktop apps sandboxed across distros
Command One-liner
scp Copy files over SSH
rsync Sync files efficiently, locally or remotely
ssh Log in to a remote machine
curl Transfer data with URLs (the Swiss army knife)
wget Download files from the web
Command One-liner
ip Show and manage interfaces, routes, addresses
ifconfig The classic (deprecated) interface viewer
ping Test whether a host is reachable
ss Show socket statistics
netstat The classic network statistics tool
traceroute Show the path packets take to a host
dig Query DNS records
nslookup Look up DNS names interactively
host A simple DNS lookup utility
tcpdump Capture and inspect network traffic
nc Read/write data across network connections
Command One-liner
tar Bundle many files into one archive
gzip Compress a single file with DEFLATE
zip Create and read .zip archives
xz High-ratio compression
bzip2 Block-sorting compression (better ratio than gzip)
dd Convert and copy raw data (ISOs, backups, disks)
Command One-liner
strace Trace system calls a program makes
ltrace Trace library calls a program makes
lsof See which files and sockets a process holds open
journalctl Read the logs of a failing service
dmesg Check the kernel for crashes and errors
Command One-liner
yt-dlp Download videos from thousands of sites
Can’t find what you’re looking for? Try the search bar , or browse the
full table of contents in the sidebar.