Fundamentals 11 min read

Essential Linux Commands Every Beginner Should Know

This guide presents a concise collection of essential Linux command‑line tools, explaining their purpose and basic usage with examples, helping newcomers quickly perform common tasks such as navigating directories, managing files, monitoring system resources, and controlling processes.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Essential Linux Commands Every Beginner Should Know

Commands are instructions that tell a computer to perform tasks. This tutorial gathers the most useful basic Linux commands for beginners, covering file management, system inspection, and process control across various distributions.

1. ls – List

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

2. mkdir – Make Directory

Creates a new directory: mkdir <new-directory-name>.

3. pwd – Print Working Directory

Displays the absolute path of the current directory.

4. cd – Change Directory

Changes the current working directory to the specified folder: cd <directory>.

5. rmdir – Remove Directory

Deletes an empty directory: rmdir <directory-name>.

6. rm – Remove

Deletes files or directories. Use rm <file-name> for files and rm -r <directory-name> for recursive directory removal.

7. cp – Copy

Copies files or directories. Example: cp <source-file> <destination-file> or cp -r <source-folder> <destination-folder> for recursive copying.

8. mv – Move

Moves or renames files and 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: tail <file-name>. Use tail -n N <file-name> to display the last N lines.

11. less – View File Page by Page

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

12. grep – Search Text

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

13. find – Locate Files

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

14. tar – Archive Files

Creates, lists, or extracts tar archives. Examples: tar -cvf <archive.tar> <files> (create), tar -tvf <archive.tar> (list), tar -xvf <archive.tar> (extract).

15. gzip – Compress/Decompress

Compresses files with gzip: gzip <filename>. Decompress with gzip -d <filename>.

16. unzip – Extract ZIP Archives

Extracts zip files: unzip <archive.zip>. Use unzip -l <archive.zip> to list contents before extracting.

17. help – Command Help

Shows a brief help summary for any command: <command> --help or <command> -h.

18. whatis – One‑Line Description

Provides a short 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 connectivity: ping <host>.

22. who – Show Logged‑In Users

Lists the usernames of currently logged‑in users.

23. su – Switch User

Switches to another user account: su <username>. Superuser can switch without a password.

24. uname – System Information

Displays kernel name, hostname, version, architecture, etc. Use uname -a for all details.

25. free – Memory Usage

Shows total, used, and free memory, as well as swap. Options: -m for megabytes, -g for gigabytes.

26. df – Disk Space

Shows filesystem disk usage. Use df -h for human‑readable output.

27. ps – Process Status

Displays currently running processes.

28. top – Real‑Time Process Monitor

Shows processes sorted by CPU usage. Use top -u <username> to filter by user.

29. shutdown – Power Off or Reboot

Shuts down the system; use shutdown -r to reboot.

This concise reference equips newcomers with the commands needed for everyday Linux usage, from navigating the filesystem to monitoring system resources and managing processes.

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.

LinuxShellcommand-lineUnixbasics
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.