Interview Prep/Shell Scripting/Best practices and rapid-fire commands

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
All Shell Scripting questions Roadmap: Shell scripting (Bash)

More on Best practices and rapid-fire commands