100 must-know Linux commands for power users.
File and Directory Management
ls# Lists files and directoriescd# Changes directorypwd# Displays the current directory pathmkdir# Creates a new directoryrmdir# Removes an empty directorycp# Copies files or directoriesmv# Moves or renames files or directoriesrm# Deletes files or directoriestouch# Creates an empty filefind# Searches for files in the filesystemlocate# Quickly finds filescat# Displays the content of a filemore# Displays file content with paginationless# Similar tomore, but with more optionshead# Displays the first lines of a filetail# Displays the last lines of a filedu# Shows disk space usage of files and directoriesdf# Displays free space in partitionschmod# Changes file and directory permissionschown# Changes the owner of files or directoriesln# Creates symbolic or hard links to filesstat# Displays detailed information about a file
Text Manipulation
echo# Prints text in the terminalgrep# Searches for patterns in filesawk# A text processing languagesed# Stream editor, used for modifying filescut# Extracts sections from each line in a filesort# Sorts lines of textuniq# Removes duplicate lines in a filetr# Translates or deletes characterswc# Counts lines, words, and characters in a filediff# Compares two files line by linecmp# Compares two files byte by bytetee# Reads from standard input and writes to standard output and files
Processes
ps# Displays information about running processestop# Shows real-time processeshtop# A more user-friendly version oftopkill# Terminates a process by its PIDkillall# Terminates processes by namebg# Resumes a suspended job in the backgroundfg# Brings a job to the foregroundjobs# Displays a list of current jobsnice# Runs a command with a modified priorityrenice# Changes the priority of a running processnohup# Runs a command that continues after logging outuptime# Shows how long the system has been running
User Management
whoami# Displays the current usersudo# Executes a command as superusersu# Switches to another useruseradd# Adds a new useruserdel# Deletes a userusermod# Modifies a user accountpasswd# Changes a user's passwordgroupadd# Creates a new groupgroupdel# Deletes a groupgroups# Displays a user's groupschage# Changes user password expiration
Network and Connections
ping# Checks connectivity to an IP addressifconfig# Configures a network interfaceip# Advanced network management toolnetstat# Displays network connections, routing tables, etc.ss# Tool for displaying connections and socketswget# Downloads files from the webcurl# Transfers data to or from a serverscp# Securely copies files between hostsssh# Secure connection to other systemssftp# Secure file transfertraceroute# Traces the route to a hostdig# DNS query toolnslookup# DNS query toolhostname# Displays or sets the host namenmcli# NetworkManager control toolufw# Simple firewall for iptables
System and Hardware
uname# Displays system informationhostnamectl# Manages the system's host namedmesg# Displays kernel messageslshw# Displays detailed hardware informationlsblk# Displays information about block devicesblkid# Displays attributes of block deviceslscpu# Displays CPU informationlsusb# Lists connected USB deviceslspci# Lists connected PCI devicesdf# Displays disk space usagefree# Displays free and used memoryuptime# Shows system uptimetop# Displays real-time processes and resource usagehtop# An interactive version oftop
Package Management and Software
apt# Package manager for Debian/Ubuntuyum# Package manager for RedHat/CentOSdnf# Package manager for Fedorapacman# Package manager for Arch Linuxsnap# Manages Snap packagesflatpak# Manages Flatpak packagesrpm# Manages RPM packagesdpkg# Package system for Debian/Ubuntumake# Compiles and builds software from sourcetar# Archives and extracts filesgzip# Compresses filesunzip# Extracts compressed ZIP files
Other Useful Commands
alias# Creates shortcuts for commands

Comments
Post a Comment