Linux Commands Cheat Sheet
Loading commands...
๐
No commands found. Try a different search term.
Linux Commands Reference
This comprehensive Linux commands cheat sheet covers over 200 essential commands every Linux user, developer, and system administrator should know. Whether you're a beginner learning the terminal or an experienced sysadmin needing a quick reference, this guide organizes commands into logical categories for easy browsing and searching.
Categories Covered
- File & Directory โ ls, cd, cp, mv, rm, find, mkdir, and more for navigating and managing files
- Text & Content โ cat, grep, sed, awk, head, tail, cut, sort, uniq for processing text
- Permissions & Ownership โ chmod, chown, chgrp, sudo, su for access control
- Process Management โ ps, top, kill, htop, screen, tmux for managing running processes
- Networking โ ping, curl, wget, ssh, scp, rsync, netstat, nmap for network operations
- Package Management โ apt, yum, dnf, pacman, pip, npm for installing software
- Compression & Archive โ tar, gzip, zip, unzip, bzip2, xz for compressing files
- System Information โ uname, free, lscpu, lsblk, dmesg, journalctl for system info
- Disk & Storage โ fdisk, mount, mkfs, dd, fsck for disk management
- User & Group โ useradd, usermod, passwd, groupadd for user management
- Shell & Scripting โ echo, export, alias, cron, read for shell scripting
- Firewall & Security โ iptables, ufw, openssl, gpg, ssh-keygen for security
- Performance & Monitoring โ vmstat, sar, iotop, strace, perf for performance tuning
How to Use This Cheat Sheet
Use the search box at the top to instantly filter commands by name or keyword. Click a category tag to browse all commands in that category. Each command card shows the command name, a description, and practical examples with common flags and options.
Linux Command Tips for Beginners
- Use man pages โ Run
man commandto read the full manual for any command. - Tab completion โ Press Tab to auto-complete commands, filenames, and paths.
- Up arrow โ Cycle through your command history with the Up arrow key.
- Pipe commands โ Use | to chain commands, e.g.,
ls -la | grep '.txt'. - Redirect output โ Use > to save output to a file, e.g.,
ls > files.txt. - Background tasks โ Add & to run a command in the background, e.g.,
command &.
FAQ
What's the difference between sudo and su? โ sudo runs a single command as root, while su switches to the root user's shell entirely.
How do I find a file in Linux? โ Use find /path -name 'filename' or locate filename for faster searches.
How do I check disk space? โ Use df -h for filesystem usage or du -sh /path for directory size.
How do I kill a process? โ Find the PID with ps aux | grep name or pgrep name, then kill PID or killall name.