Linux Commands Cheat Sheet: 100 Essential Commands for Beginners

Written by

in

Linux can look intimidating at first, but its command line follows a practical pattern: commands perform actions, options modify them, and paths identify targets. A beginner who learns the most common commands gains enough confidence to browse files, inspect the system, install software, manage permissions, and troubleshoot everyday problems.

TLDR: This cheat sheet highlights 100 essential Linux commands grouped by task, making it easier for beginners to study them in context. Most daily work involves navigation, file management, text viewing, permissions, networking, packages, and process control. A learner does not need to memorize everything immediately; repeated use of a small core set builds lasting command-line fluency.

How Beginners Should Read This Cheat Sheet

Each command below is presented with a short purpose rather than a long manual-style explanation. A beginner should practice in a safe test directory, use man for details, and type commands carefully, especially those involving deletion, permissions, disks, or administrator access. In Linux, small commands can be combined into powerful workflows.

100 Essential Linux Commands

  • Navigation and help: pwd shows the current directory; ls lists files; cd changes directories; tree displays folders visually; find searches by rules; locate searches an index; which shows a command path; whereis finds related files; man opens manuals; history lists past commands.
  • Files and directories: touch creates files; mkdir creates folders; cp copies items; mv moves or renames; rm deletes files; rmdir removes empty folders; ln creates links; basename extracts a filename; dirname extracts a path; file identifies file type.
  • Viewing text: cat prints files; less pages through text; more shows text page by page; head shows the beginning; tail shows the end; wc counts lines or words; sort orders lines; uniq removes repeats; cut extracts columns; paste joins lines.
  • Searching and processing: grep searches text; sed edits streams; awk processes columns; tr translates characters; xargs builds commands from input; diff compares files; cmp compares bytes; comm compares sorted files; tee writes and displays output; printf formats text.
  • Permissions and identity: chmod changes permissions; chown changes owner; chgrp changes group; umask sets default permissions; stat shows file metadata; id displays user IDs; whoami prints the active user; groups lists memberships; su switches user; sudo runs privileged commands.
  • System information: uname shows kernel details; hostname shows or sets the host name; uptime shows running time; date displays time; cal shows a calendar; df reports disk space; du estimates folder size; free reports memory; top monitors activity; htop provides an interactive monitor.
Image not found in postmeta
  • Processes and jobs: ps lists processes; pgrep finds process IDs; pkill kills by name; kill sends signals; killall stops matching processes; nice starts with priority; renice changes priority; jobs lists shell jobs; fg resumes in front; bg resumes in back.
  • Networking: ip manages network settings; ping tests reachability; traceroute traces network paths; ss shows sockets; curl transfers data; wget downloads files; ssh opens remote shells; scp copies securely; rsync syncs files; dig queries DNS.
  • Packages and services: apt manages Debian packages; dnf manages Fedora packages; yum supports older Red Hat systems; pacman manages Arch packages; snap installs snap apps; flatpak installs sandboxed apps; systemctl controls services; journalctl reads logs; service manages legacy services; crontab schedules tasks.
  • Archives, disks, and sessions: tar creates archives; gzip compresses files; gunzip decompresses them; zip creates zip files; unzip extracts them; mount attaches filesystems; umount detaches them; fdisk manages partitions; passwd changes passwords; clear cleans the terminal screen.

Practical Beginner Tips

A beginner usually benefits from mastering patterns instead of isolated commands. For example, ls -lah gives a detailed file listing, tail -f follows a growing log file, and grep "error" file.log filters useful lines. Before running destructive commands such as rm -r or disk tools such as fdisk, careful review is essential.

Command options matter. The same command can behave very differently with flags such as -r, -f, -a, or -v. When uncertain, a cautious user checks man command, runs a harmless test, or asks an administrator before proceeding.

FAQ

Which Linux command should a beginner learn first?
A beginner should usually start with pwd, ls, and cd. These commands build comfort with location, directory contents, and movement through the filesystem.
Is it necessary to memorize all 100 commands?
No. Most beginners use a smaller daily set and gradually learn the rest through repetition. A cheat sheet works best as a reference during practice.
What command is dangerous for beginners?
rm, especially with recursive or force options, can permanently delete files. Commands involving sudo, partitions, and permissions also deserve extra care.
How can someone learn command options?
The standard method is reading manual pages with man, checking built-in help with options such as --help, and practicing examples in a noncritical folder.
Are Linux commands the same on every distribution?
Many core commands are shared across distributions, but package managers differ. For example, Debian-based systems often use apt, Fedora uses dnf, and Arch uses pacman.