| Command | What |
|---|---|
df -h |
Disk usage by filesystem, human-readable |
du -sh /path |
Total size of a directory |
| `du -sh /path/* | sort -h` |
lsblk |
Block devices and their mount points |
mount |
All mounted filesystems |
findmnt /path |
What's mounted at a path |
find /path -name "*.log" -mtime +7 |
Files modified more than 7 days ago |
find /path -size +100M |
Files larger than 100MB |
lsof |
All open files |
lsof -i :443 |
What's listening on port 443 |
lsof -p <pid> |
What files this PID has open |