free
– Memory usageFunction: Shows RAM and swap.
Syntax:
free -h
Lesson: Helps diagnose memory leaks.
df
– Disk spaceFunction: Displays disk usage.
Syntax:
df -h
Lesson: Always check before downloads or installations.
lsblk
– List block devicesFunction: Shows disks and partitions.
Syntax:
lsblk
Lesson: Useful for attaching new storage volumes.
du
– Directory space usageFunction: Shows how much space folders take.
Syntax:
du -sh *
Lesson: Helps identify large folders quickly.