Show Menu
Cheatography

Linux Commands Cheat Sheet Cheat Sheet (DRAFT) by

A quick-reference cheat sheet covering essential Linux commands for DevOps, Sysadmin, and Interview preparation. Includes file operations, permissions, process management, networking, logs, and common troubleshooting commands.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

File & Directory Commands

Command
Descri­ption
ls
List files
ls -la
List all files including hidden
cd /path
Change directory
pwd
Show current path
mkdir folder
Create directory
rmdir folder
Remove empty folder
cp file1 file2
Copy file
mv file1 file2
Move or rename file
rm file
Delete file
touch file
Create empty file
find /path -name “*.log”
Search files
These commands are using for File & Directory Commands manipu­lations

Process & System Monitoring

ps aux
Show running processes
top
Real-time system monitor
htop
Like top (color UI)
If installed
kill PID
Kill process
free -h
RAM usage
Human readable
uptime
System uptime & load
systemctl status service
Service status
systemctl restart service
Restart service
These are Process & System Monitoring commands

File Permis­sions & Ownership

Command
Descri­ption
Notes
chmod 755 file
Change permis­sions
rwx for owner
chown user:group file
Change file owner
chgrp group file
Change group ownership
ls -l
Show permis­sions
umask
Show default permission mask
These are File Permis­sions & Ownership commands

SUMMARY

 
This is very useful sheet for who has looking for important Linux commands
 

User & Group Management

Command
Descri­ption
useradd user
Create user
passwd user
Set password
userdel user
Delete user
id
Show user info
whoami
Current username
groupadd group
Create group
These commands are to create User & Group Management

Networking Commands

Command
Descri­ption
ip a
Show IP address
ip route
Routing table
ping host
Test connec­tivity
curl URL
HTTP request
wget URL
Download file
ss -tulpn
Show listening ports
traceroute host
Trace network path
nslookup domain
DNS lookup
These are Networking Commands
 

Disk & File System Commands

Command
Descri­ption
df -h
Disk usage
du -sh folder
Folder size
lsblk
Show block devices
fdisk -l
Disk partitions
mount /path
Mount drive
umount /path
Unmount drive
These are Disk & File System Commands

Logs & System Info

Command
Descri­ption
Notes
tail -f /var/l­og/­syslog
Live logs
Ubuntu
tail -f /var/l­og/­mes­sages
Live logs
RHEL
journalctl -u service
Service logs
dmesg
Kernel logs
These commands are used to fine Logs & System Info