← Back to blog
bpdubuntu

Essential Commands for Monitoring Your Ubuntu Server

8 October 2025bpd · ubuntu

Get a Real-Time View of Your Server’s Health

Before diving into complex monitoring tools, the ‘Ubuntu System Administration Guide’ emphasizes the importance of mastering a few essential command-line utilities. These commands give you an instant snapshot of what’s happening on your server.

Key Monitoring Commands

  • top: This is your go-to command for a live, real-time view of your system’s processes. It shows you CPU and memory usage, system load, and which processes are consuming the most resources.
  • netstat -anp: Use this command to see all active network connections. It’s invaluable for checking which services are listening on which ports and for troubleshooting network issues.
  • lsof: This command lists all open files on your system. Since Linux treats almost everything as a file (including network connections), this is a powerful tool for seeing what processes are using which resources.
  • du -h –max-depth=1: Running out of disk space is a common problem. This command shows you the disk usage of each directory in your current location, helping you quickly identify what’s taking up all the space.

Mastering these commands is the first step toward effective server administration.


This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13