Linux Commands Cheat Sheet - Categorized &
Detailed
File & Directory Management
ls: Description not available.
cd: Description not available.
pwd: Description not available.
mkdir: Description not available.
rmdir: Removes an empty directory. Usage: rmdir directory_name
touch: Description not available.
cp: Description not available.
mv: Description not available.
rm: Description not available.
basename: Description not available.
dirname: Description not available.
file: Description not available.
stat: Displays detailed information about a file or directory, including size, permissions, and
timestamps.
find: Description not available.
locate: Description not available.
updatedb: Description not available.
chmod: Description not available.
chown: Description not available.
chgrp: Description not available.
umask: Description not available.
ln: Description not available.
File Viewing & Editing
cat: Description not available.
less: Description not available.
more: Description not available.
head: Description not available.
tail: Description not available.
nano: Description not available.
vi: Description not available.
vim: Description not available.
wc: Description not available.
strings: Description not available.
fold: Description not available.
fmt: Description not available.
File Content Processing
grep: Description not available.
egrep: Description not available.
fgrep: Searches for fixed strings in files (no regex). Example: fgrep 'text' file.txt
cut: Description not available.
awk: Description not available.
sed: Description not available.
sort: Description not available.
uniq: Description not available.
shuf: Description not available.
tr: Description not available.
tee: Description not available.
xargs: Description not available.
diff: Description not available.
cmp: Description not available.
comm: Compares two sorted files line-by-line. Usage: comm file1 file2
Compression & Archiving
tar: Description not available.
gzip: Description not available.
gunzip: Description not available.
zip: Description not available.
unzip: Description not available.
zcat: Description not available.
zgrep: Description not available.
zipinfo: Description not available.
Disk & Filesystem Management
df: Description not available.
du: Description not available.
mount: Description not available.
umount: Unmounts a mounted filesystem. Usage: sudo umount /mnt
fsck: Description not available.
fdisk: Description not available.
parted: Description not available.
mkfs: Creates a filesystem on a device. Example: sudo mkfs.ext4 /dev/sdb1
lsblk: Description not available.
createrepo: Creates a new repository of RPM packages for YUM.
vgs: Description not available.
Process & Job Management
ps: Description not available.
top: Description not available.
htop: Description not available.
jobs: Description not available.
bg: Description not available.
fg: Description not available.
kill: Description not available.
killall: Description not available.
nice: Description not available.
renice: Description not available.
nohup: Description not available.
systemctl: Description not available.
service: Manages services (start, stop, restart) in SysVinit systems.
cron: Daemon to execute scheduled commands.
crontab: Description not available.
at: Description not available.
atq: Description not available.
atrm: Description not available.
User & Permission Management
useradd: Description not available.
usermod: Description not available.
userdel: Description not available.
passwd: Description not available.
groups: Description not available.
id: Description not available.
who: Description not available.
w: Description not available.
visudo: Description not available.
groupadd: Description not available.
groupdel: Description not available.
chage: Description not available.
Networking & Connectivity
ping: Description not available.
traceroute: Description not available.
telnet: Description not available.
ssh: Description not available.
scp: Description not available.
wget: Description not available.
curl: Description not available.
ftp: Description not available.
rsync: Description not available.
netstat: Description not available.
ss: Displays socket statistics. Modern replacement for netstat.
ifconfig: Description not available.
ip: Description not available.
nmcli: Description not available.
nslookup: Description not available.
dig: Description not available.
tcpdump: Description not available.
ethtool: Description not available.
route: Description not available.
hostname: Description not available.
hostnamectl: Description not available.
System Information & Monitoring
uname: Description not available.
uptime: Description not available.
arch: Description not available.
dmidecode: Description not available.
lscpu: Description not available.
lsmod: Description not available.
vmstat: Description not available.
iostat: Description not available.
free: Description not available.
dmesg: Description not available.
history: Description not available.
last: Description not available.
runlevel: Description not available.
getenforce: Description not available.
getfacl: Description not available.
sosreport: Description not available.
Package Management
yum: Description not available.
dnf: Description not available.
rpm: Description not available.
Scripting & Automation
alias: Description not available.
export: Description not available.
env: Description not available.
printenv: Description not available.
script: Description not available.
echo: Description not available.
read: Reads user input into a variable in shell scripts.
bash: Description not available.
sh: Runs shell scripts using the Bourne shell.