Fundamentals 9 min read

Essential Linux Command Cheat Sheet for Beginners

This guide introduces the most frequently used Linux command‑line tools, explaining what each command does, its basic syntax, and common options, so newcomers can quickly perform file management, system inspection, and networking tasks across any Linux distribution.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Essential Linux Command Cheat Sheet for Beginners

Commands are the instructions you give a computer to perform tasks such as shutting down, listing files, or displaying messages. The following basic Linux commands are useful for beginners, system administrators, and anyone working in a terminal.

ls – List : Shows the contents of the current working directory, similar to opening a folder in a graphical interface.

mkdir – Make Directory : Creates a new directory. Example: mkdir new-directory-name.

pwd – Print Working Directory : Displays the absolute path of the current directory.

cd – Change Directory : Changes the current working directory. Example: cd /path/to/directory.

rmdir – Remove Directory : Deletes an empty directory. Example: rmdir directory-name.

rm – Remove : Deletes files or directories. Use rm -r directory-name for recursive removal.

cp – Copy : Copies files or directories. Example: cp source-file destination-file or cp -r source-dir destination-dir for recursive copy.

mv – Move : Moves or renames files and directories. Example: mv old-name new-name or mv file /new/path/.

cat – Concatenate and Print Files : Displays the contents of a file on the terminal.

tail – Print Last Lines : Shows the last 10 lines of a file by default; use tail -n N file to specify the number of lines.

less – View File Page by Page : Opens a file for paginated viewing; navigate with Ctrl+F (forward) and Ctrl+B (backward).

grep – Search Text : Finds a string in a file. Example: grep "text" file. Options: -i (ignore case), -r (recursive).

find – Locate Files : Searches for files matching criteria. Example: find /path -name "filename" (case‑sensitive) or -iname (case‑insensitive).

tar – Archive Utility : Creates, lists, or extracts tar archives. Examples: tar -cvf archive.tar files, tar -tvf archive.tar, tar -xvf archive.tar.

gzip – Compress/Decompress : Compresses a file ( gzip filename) or decompresses with gzip -d filename.gz.

unzip – Extract ZIP Archives : Extracts a zip file ( unzip archive.zip) and can list contents with unzip -l archive.zip.

help – Command Help : Shows a brief usage summary for any command, e.g., command --help or -h.

whatis – One‑Line Description : Provides a short description of a command, e.g., whatis ls.

man – Manual Pages : Displays the full manual for a command, e.g., man ls.

exit – End Session : Closes the current terminal session.

ping – Network Reachability : Sends ICMP packets to test connectivity to a remote host, e.g., ping example.com.

who – Logged‑In Users : Lists users currently logged into the system.

su – Switch User : Changes the active user identity, optionally without a password for the superuser.

uname – System Information : Shows kernel name, hostname, version, etc.; uname -a displays all details.

free – Memory Usage : Reports free and used memory; options -m (MB) and -g (GB) adjust units.

df – Disk Space : Shows filesystem usage; df -h presents sizes in a human‑readable format.

ps – Process Snapshot : Lists currently running processes.

top – Real‑Time Process Monitor : Displays processes sorted by CPU usage; top -u username filters by user.

shutdown – Power Off / Reboot : Turns off the machine; shutdown -r restarts it.

These commands form the foundation for everyday Linux work, enabling file manipulation, system monitoring, networking checks, and basic administration without requiring extensive scripting knowledge.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxShellUnixbasicsterminal
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.