Skip to content

Linux Common Commands Cheat Sheet

Linux Common Commands Cheat Sheet

File and Directory Operations

Command Description
ls List directory contents
cd Change directory
pwd Print working directory
mkdir Create a new directory
rmdir Remove an empty directory
rm Remove files or directories
cp Copy files or directories
mv Move or rename files or directories

System Administration

Command Description
top Display system processes in real-time
htop Interactive process viewer
ps Display currently running processes
kill Terminate a process
df Display disk space usage of file systems
du Display disk usage of a directory or file

Network Configuration

Command Description
ifconfig Configure network interfaces
ping Test network connectivity
netstat Display network connections, routing tables, and more
ssh Securely log in to another computer remotely
scp Securely copy files

Miscellaneous

Command Description
man View the manual page for a command
chmod Modify file or directory permissions
chown Modify file or directory owner
tar Archive files
gzip Compress files
find Search for files