VPS1Euro Dashboard Wiki

Complete client guide: infrastructure, services, account and support.

FR EN

System monitoring (htop, ss, ncdu)

Essential commands for monitoring resources and diagnosing problems.

What this tutorial does

The tutorial "System monitoring (htop, ss, ncdu)" helps you achieve this goal:

Essential commands for monitoring resources and diagnosing problems.

← Back to tutorials
1 profiles 19 steps 2 commands ~15 min

Debian/Ubuntu

  1. Install the tools: apt install -y htop net-tools iotop ncdu iftop
  2. --- CPU/RAM ---
  3. Interactive monitoring: htop
  4. System load: uptime
  5. Available memory: free -h
  6. --- Disk ---
  7. Disk space per partition: df -h
  8. Analyze space by folder (interactive): ncdu /
  9. Real-time disk I/O: iotop
  10. --- Network ---
  11. Open ports and active connections: ss -tulnp
  12. Real-time bandwidth: iftop
  13. --- Process ---
  14. Find a process: ps aux | grep nom_processus
  15. Kill a process by PID: kill -9 PID
  16. --- System logs ---
  17. Track logs in real time: journalctl -f
  18. Apache logs: tail -f /var/log/apache2/error.log
  19. Nginx logs: tail -f /var/log/nginx/error.log