50 Essential Linux Commands Every User Should Know: A Comprehensive Guide
50 Essential Linux Commands You Should Know
Linux is a powerful operating system with a vast command-line interface. Whether you're a beginner or an advanced user, knowing essential commands can make your workflow more efficient. Here's a list of 50 must-know Linux commands along with their full forms.
Basic Commands
- ls – List directory contents (list)
- pwd – Print working directory (print working directory)
- cd – Change directory (change directory)
- mkdir – Make a new directory (make directory)
- rmdir – Remove an empty directory (remove directory)
- rm – Remove files or directories (remove)
- cp – Copy files and directories (copy)
- mv – Move or rename files and directories (move)
- touch – Create an empty file (touch)
- cat – Concatenate and display file contents (concatenate)
File Management
- find – Search for files in a directory (find)
- locate – Find a file by name (locate)
- grep – Search for a pattern in files (global regular expression print)
- diff – Compare two files line by line (difference)
- tar – Archive files (tape archive)
- zip – Compress files into a .zip format (zip archive)
- unzip – Extract files from a .zip archive (unzip archive)
- gzip – Compress files using Gzip (GNU zip)
- gunzip – Decompress Gzip files (GNU unzip)
- df – Display disk space usage (disk free)
User & Permission Management
- whoami – Show the current logged-in user (who am i)
- id – Display user ID and group ID (identity)
- chmod – Change file permissions (change mode)
- chown – Change file owner (change owner)
- adduser – Create a new user (add user)
- deluser – Delete a user (delete user)
- passwd – Change user password (password)
- su – Switch user (substitute user)
- sudo – Execute a command as a superuser (superuser do)
- groups – Show groups of a user (groups)
Process Management
- ps – Display active processes (process status)
- top – Show real-time running processes (top processes)
- htop – Interactive process viewer (Hisham’s top)
- kill – Terminate a process by PID (kill process)
- pkill – Kill a process by name (process kill)
- bg – Resume a background process (background)
- fg – Bring a background process to the foreground (foreground)
- jobs – Show active jobs (jobs)
- nice – Start a process with a priority (niceness)
- renice – Change process priority (re-niceness)
Networking Commands
- ping – Check connectivity to a host (packet internet groper)
- wget – Download files from the internet (web get)
- curl – Transfer data from a URL (client URL)
- ifconfig – Display network interface details (interface configuration)
- ip – Show/manipulate network interfaces (internet protocol)
- netstat – Display network connections (network statistics)
- ss – Show detailed network statistics (socket statistics)
- scp – Securely copy files over SSH (secure copy)
- rsync – Synchronize files between systems (remote sync)
- traceroute – Display the path packets take to a host (trace route)
These 50 Linux commands will help you navigate, manage files, monitor system performance, and interact with networks efficiently. Learning them will make you more proficient in using Linux.
Comments