Here are 100 useful Linux commands grouped by categories for clarity. These are essential for system administrators, developers, and Linux power users.
🗂️ File and Directory Management
ls– List directory contentscd– Change directorypwd– Print working directorymkdir– Create a directoryrmdir– Remove a directoryrm– Remove files or directoriescp– Copy files and directoriesmv– Move/rename files and directoriestouch– Create empty filefind– Find files and directorieslocate– Quickly find files using databaseupdatedb– Updatelocatedatabasestat– Display file statusfile– Determine file typebasename– Extract filename from pathdirname– Extract directory from pathtree– Display directory structure as a treereadlink– Follow symlinksrealpath– Get absolute path of filedu– Disk usage of files/directories
📑 Text Processing
cat– Concatenate and display filestac– Display file in reversemore– View file one page at a timeless– Advanced file pagerhead– Show first lines of filetail– Show last lines of filecut– Cut sections from linessort– Sort lines of textuniq– Filter duplicate lineswc– Word, line, byte countgrep– Search with regular expressionsegrep– Extended grepawk– Pattern scanning and processingsed– Stream editortr– Translate/replace charactersstrings– Extract printable strings from binary filesdiff– Compare file contentscmp– Compare two files byte-by-bytenl– Number linestee– Redirect output to file and stdout
⚙️ Process Management
ps– Process statustop– Real-time system monitoringhtop– Interactive process viewernice– Start process with priorityrenice– Change priority of running processkill– Send signal to processkillall– Kill by namepkill– Pattern killjobs– Show background jobsfg– Bring background job to foregroundbg– Resume background jobxargs– Build and execute command lines from input
🔧 User Management
id– Display UID and GIDwho– Who is logged inwhoami– Current userusers– List logged in usersadduser– Add user (Debian)useradd– Add userusermod– Modify useruserdel– Delete userpasswd– Change passwordgroupadd– Add groupgroupdel– Delete groupgroups– Show user's groupschage– User password aging info
🔒 Permissions and Ownership
chmod– Change file permissionschown– Change file ownerchgrp– Change group ownershipumask– Default permission maskls -l– Detailed permissions listinggetfacl– View Access Control Listssetfacl– Set ACLs
📦 Package Management
(For Fedora/RHEL-based systems)
73. dnf install – Install package
74. dnf remove – Remove package
75. dnf search – Search for package
76. dnf update – Update packages
77. dnf list installed – Show installed packages
(For Debian/Ubuntu-based systems)
78. apt update – Update package lists
79. apt upgrade – Upgrade installed packages
80. apt install – Install package
81. dpkg -i – Install a .deb package
82. dpkg -l – List installed packages
🌐 Networking
ip a– Show IP addressesip r– Show routing tableping– Check host availabilitytraceroute– Trace path to hostdig– DNS lookupnslookup– DNS query toolnetstat– Network connections (deprecated)ss– Socket statisticsnmap– Network scannercurl– Transfer data from URLswget– Download files from webscp– Secure file copyrsync– File synchronization tool
🛡️ System Services and Boot
systemctl– Manage systemd servicesjournalctl– View logsshutdown– Halt systemreboot– Reboot systemat– Schedule one-time jobscrontab– Schedule recurring jobs
