Rapid fire: one-liners for disk, memory and process checks.
BeginnerConceptBest practices and rapid-fire commands
Answer
df -hP -x tmpfs -x devtmpfs # disk usage, no pseudo filesystems
df -iP / # inode usage
du -xh --max-depth=1 /var 2>/dev/null | sort -h # what is filling /var
free -m; awk '/MemAvailable/ {print $2/1024 " MiB"}' /proc/meminfo
ps -eo pid,user,%mem,%cpu,etime,cmd --sort=-%mem | head
pgrep -af nginx # find processes with full command line
lsof +L1 # deleted files still held open
uptime; cat /proc/loadavg; nproc
More on Best practices and rapid-fire commands
What does a production-ready script template look like?AdvancedWhat logging practices do you follow in automation scripts?IntermediateHow do you make a script support a dry-run mode cleanly?BeginnerRapid fire: one-liners for logs and text.BeginnerRapid fire: one-liners for files and housekeeping.BeginnerRapid fire: one-liners for JSON, YAML and cloud CLIs.Beginner