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:
pwdshows the current directory;lslists files;cdchanges directories;treedisplays folders visually;findsearches by rules;locatesearches an index;whichshows a command path;whereisfinds related files;manopens manuals;historylists past commands. - Files and directories:
touchcreates files;mkdircreates folders;cpcopies items;mvmoves or renames;rmdeletes files;rmdirremoves empty folders;lncreates links;basenameextracts a filename;dirnameextracts a path;fileidentifies file type. - Viewing text:
catprints files;lesspages through text;moreshows text page by page;headshows the beginning;tailshows the end;wccounts lines or words;sortorders lines;uniqremoves repeats;cutextracts columns;pastejoins lines. - Searching and processing:
grepsearches text;sededits streams;awkprocesses columns;trtranslates characters;xargsbuilds commands from input;diffcompares files;cmpcompares bytes;commcompares sorted files;teewrites and displays output;printfformats text. - Permissions and identity:
chmodchanges permissions;chownchanges owner;chgrpchanges group;umasksets default permissions;statshows file metadata;iddisplays user IDs;whoamiprints the active user;groupslists memberships;suswitches user;sudoruns privileged commands. - System information:
unameshows kernel details;hostnameshows or sets the host name;uptimeshows running time;datedisplays time;calshows a calendar;dfreports disk space;duestimates folder size;freereports memory;topmonitors activity;htopprovides an interactive monitor.
- Processes and jobs:
pslists processes;pgrepfinds process IDs;pkillkills by name;killsends signals;killallstops matching processes;nicestarts with priority;renicechanges priority;jobslists shell jobs;fgresumes in front;bgresumes in back. - Networking:
ipmanages network settings;pingtests reachability;traceroutetraces network paths;ssshows sockets;curltransfers data;wgetdownloads files;sshopens remote shells;scpcopies securely;rsyncsyncs files;digqueries DNS. - Packages and services:
aptmanages Debian packages;dnfmanages Fedora packages;yumsupports older Red Hat systems;pacmanmanages Arch packages;snapinstalls snap apps;flatpakinstalls sandboxed apps;systemctlcontrols services;journalctlreads logs;servicemanages legacy services;crontabschedules tasks. - Archives, disks, and sessions:
tarcreates archives;gzipcompresses files;gunzipdecompresses them;zipcreates zip files;unzipextracts them;mountattaches filesystems;umountdetaches them;fdiskmanages partitions;passwdchanges passwords;clearcleans 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, andcd. 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 involvingsudo, 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 usesdnf, and Arch usespacman.








