Find large files
Find files larger than 100MB sorted by size
find / -type f -size +100M -exec ls -lh {} \; 2>/dev/null | sort -k5 -rh | head -20
More linux commands
-
du -sh /* 2>/dev/null | sort -rh | head -15Top 15 largest directories at root level
-
ss -tlnpTCP listening ports with PID and process name (modern netstat)
-
ss -tlnp | grep :<port>Which process is listening on a specific port
-
ps aux --sort=-%cpu | head -15Top 15 processes by CPU consumption
-
ps aux --sort=-%mem | head -15Top 15 processes by memory consumption