Fundamentals 10 min read

Master Essential Linux Commands: A Beginner’s Quick Reference

This guide introduces 29 core Linux command‑line utilities—such as ls, mkdir, cp, grep, and tar—explaining their basic syntax, common options, and typical use cases, providing newcomers and system administrators with a concise reference for everyday tasks.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Master Essential Linux Commands: A Beginner’s Quick Reference

Although Linux distributions offer many graphical user interfaces, the command‑line (bash) remains a fast and powerful way to manage a system. Below is a curated list of basic Linux commands useful for beginners, regular users, and administrators.

1. ls – List

Lists the contents of the current working directory, similar to opening a folder in a GUI.

2. mkdir – Make Directory

Creates a new directory:

mkdir <new-directory-name>

3. pwd – Print Working Directory

Displays the absolute path of the current working directory.

4. cd – Change Directory

Changes the current directory:

cd <directory>

5. rmdir – Remove Directory

Deletes an empty directory:

rmdir <directory-name>

6. rm – Remove

Deletes files or directories; use rm -r <directory-name> for recursive removal.

7. cp – Copy

Copies files or directories; cp -r <source-folder> <destination-folder> copies recursively.

8. mv – Move

Moves or renames files/directories:

mv <source> <destination>

9. cat – Concatenate and Print Files

Displays the contents of a file on standard output:

cat <file>

10. tail – Print Last Lines

Shows the last 10 lines of a file by default; use tail -n N <file> to specify a different number.

11. less – View Files Page‑by‑Page

Displays file contents one screen at a time; useful for large files. Navigation keys include Ctrl+F (forward) and Ctrl+B (back).

12. grep – Search Text

Searches for a string in files: grep "<string>" <file>. Options: -i (ignore case), -r (recursive).

13. find – Locate Files

Searches for files matching criteria: find <folder> -name <file> (case‑sensitive) or -iname (case‑insensitive).

14. tar – Archive Files

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

15. gzip – Compress Files

Compresses a file: gzip <filename>. Decompress with gzip -d <filename>.

16. unzip – Extract ZIP Archives

Extracts zip files; unzip -l <archive.zip> lists contents before extraction.

17. help – Command Help

Shows built‑in help for a command: <command> --help or -h.

18. whatis – One‑Line Description

Provides a brief description of a command: whatis <command>.

19. man – Manual Pages

Displays the full manual for a command: man <command>.

20. exit – End Session

Closes the current terminal session.

21. ping – Test Network Connectivity

Sends ICMP packets to a remote host to check reachability: ping <host>.

22. who – Show Logged‑In Users

Lists usernames of currently logged‑in users.

23. su – Switch User

Changes to another user account: su <username>. Root can switch without a password.

24. uname – System Information

Displays kernel name, hostname, version, architecture, etc.; uname -a shows all details.

25. free – Memory Usage

Shows total, used, and free memory; options -m for MB, -g for GB.

26. df – Disk Space

Reports filesystem disk usage; df -h presents sizes in a human‑readable format.

27. ps – Process Status

Lists currently running processes.

28. top – Real‑Time Process Monitor

Shows processes sorted by CPU usage; top -u <username> filters by user.

29. shutdown – Power Off or Reboot

Shuts down the system; shutdown -r reboots.

This collection provides a quick‑reference cheat sheet for essential Linux command‑line operations.

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.

Linuxshellsystem administrationBasic Commands
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

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.