🛠️ ToolsPilot
← Back to ToolsPilot

Linux Cheat Sheet

Essential Linux commands for daily use. File management, networking, and system admin. Bookmark this page or print it.

File Operations

ls -laList files
cp -r src dstCopy dir
mv src dstMove/rename
rm -rf dirRemove dir
mkdir -p dirCreate dirs
find . -name "*.txt"Find files
chmod 755 filePermissions
chown user:group fileOwnership

Text Processing

grep "pattern" fileSearch text
grep -r "pattern" dirRecursive search
sed "s/old/new/g" fileFind & replace
awk "{print $1}" fileColumn extract
wc -l fileCount lines
head -n 20 fileFirst 20 lines
tail -f fileFollow changes
sort | uniq -cSort & count

System

top / htopProcess monitor
ps auxList processes
kill -9 PIDKill process
df -hDisk usage
du -sh dirDir size
free -hMemory usage
uname -aSystem info
uptimeSystem uptime

Networking

curl -O urlDownload
wget urlDownload
ssh user@hostRemote login
scp file user@host:pathCopy remote
netstat -tulpnOpen ports
ping hostTest connectivity
dig domainDNS lookup
ifconfig / ip addrNetwork info