Linux commands cheat sheet
Essentials Permissions Disk / Partitions Network Scripts
Show current directory Change permissions Show disk usage Get network info Filter results
pwd chmod <perm> <file> df ip grep <filter>
Change directory Change owner Show folder usage Test remote status Display text
cd <dir> chown <user> <file> du ping echo <text>
List files Change group Find file DNS tool Show last lines
ls chgrp <user> <file> find <options> nslookup tail <file>
Commands history Use admin privileges locate <search> Route debug Show first lines
history sudo <command> View/edit partitions traceroute head <file>
User manual Switch to other user fdisk Download file Virtual terminal
man <command> su Format partition wget screen
mkfs.<format> curl Remove text elements
Files Administration Mount drive Network usage cut
mount <src> <dst> netstat Text transformation
Show file content Task scheduler Unmount drive Connect via SSH sed
cat <file> crontab umount <dst> ssh
Show with pagination awk
Stop the computer
more <file> poweroff Copy via SSH Get current date/time
Packages scp <src> <dst> date
Create folder halt
mkdir <dir> APT commands Remote file sync
Create empty file
shutdown
apt update rsync <src> <dst> Services
Restart the computer
touch <file> reboot apt upgrade New command
Copy file apt install
Processes systemctl <do> <srv>
Debug boot messages
cp <src> <dst> dmesg apt search List processes Old version
Move file apt remove ps service <srv> <do>
mv <src> <dst> Archives apt autoremove
System usage
Delete file top
Create archive List installed packages
rm <file> htop
Inf Sec
tar dpkg -l
Zip compression Stop process by id
Text editors Install manually kill <id>
zip <dst> <src> dpkg -i <package> Scout
Nano (recommended) Extract zip file Stop process by name
nano <file> unzip <file> killall <name>
Vim
vim <file>
Remember to prefix these commands with "sudo" when administrative privileges are required.