These commands are useful when you log into a Linux server and need a quick idea of what is happening.
Shows how long the server has been running, current users, and load average.
For a cleaner memory view:
Check large folders from the current directory:
Copy systemctl status nginx Copy systemctl status nginx
Replace nginx with any service name.
This shows listening ports and the processes using them.
For a specific service:
Copy journalctl -u nginx --since "1 hour ago" Copy journalctl -u nginx --since "1 hour ago"
Copy uptime && free -h && df -h && systemctl --failed Copy uptime && free -h && df -h && systemctl --failed
Use this checklist before debugging an application issue. It helps confirm whether the problem is caused by system load, full disk, failed services, or network ports.