How to extend WiFi coverage to the whole home

Best Linux Commands for Beginners (Practical 2026 Guide)

3 min read

Why Learn Linux Commands

Although modern distributions have excellent graphical interfaces, the Linux terminal is a powerful tool that lets you accomplish in seconds tasks that would take minutes in the GUI. For server administration, task automation, or troubleshooting, the terminal is essential.

Navigating the File System

  • pwd — shows the current directory (Print Working Directory)
  • ls — lists directory contents. With -la shows hidden files and details
  • cd /path — changes to the specified directory
  • cd .. — goes up one level
  • cd ~ — goes to the user’s home directory
  • mkdir name — creates a new directory

Managing Files

  • cp source destination — copies file
  • mv source destination — moves or renames file
  • rm file — deletes file (no recycle bin, be careful!)
  • rm -r folder — deletes folder and contents
  • cat file.txt — displays file contents
  • nano file.txt — edits a text file (easier for beginners than vi)

Installing Software

  • sudo apt update — updates the list of available packages (Ubuntu/Mint/Debian)
  • sudo apt install package-name — installs a package
  • sudo apt remove package-name — uninstalls a package
  • sudo apt upgrade — updates all installed packages
  • On Fedora/RHEL: replace apt with dnf. On Arch: use pacman -S

Viewing System Information

  • df -h — shows disk space (human-readable format)
  • free -h — shows RAM usage
  • top or htop — real-time process monitor
  • uname -r — shows kernel version
  • ip addr — shows network interfaces and IPs

Essential Miscellaneous Commands

  • sudo command — runs as superuser (administrator)
  • grep ‘text’ file — searches for text in a file
  • find /path -name ‘*.txt’ — searches for files by name
  • chmod +x script.sh — gives execute permission to a script
  • history — shows command history
  • man command — shows the command manual (press q to exit)

How do I cancel a running command?

Press Ctrl + C to interrupt the current process. If the terminal freezes, Ctrl + Z suspends it.

What is sudo and when to use it?

sudo (SuperUser DO) runs a command with administrator privileges. Use it only when necessary. Don’t always work as root — it’s a security risk.

How do I know if a command exists on my system?

Type which command-name (e.g., which python3). If it returns a path, the command is available. If it returns nothing, you need to install it.

Conclusion

Start with navigation commands (ls, cd, pwd), then file management (cp, mv, rm), then software installation (apt/dnf). In a few days they’ll be natural. The Linux terminal is one of the most powerful tools in computing.

Related Articles

Similar Posts