Disk Space Usage
Over time, server storage fills up as applications grow and users store more data. Usedf to inspect overall disk usage:
-h flag:
Ignore
tmpfs entries—they represent in-memory filesystems, not physical disks.Directory Usage
To measure the size of a specific directory, rundu with summarization and human-readable flags:
Running
du on very large or deeply nested directories can take time and generate high I/O.Memory Utilization
Display RAM and swap usage withfree:
CPU Load and Hardware Details
Load Averages
Useuptime to view load averages over 1, 5, and 15 minutes:
- On a single-core system, load of 1.00 equates to 100% utilization.
- On an 8-core system, a load of 6.00 means six cores were fully busy.
CPU Architecture
• Architecture
• CPU(s)
• Thread(s) per core
• Model name
• Cache sizes
PCI Devices
File System Integrity
Repairing an XFS File System
- Unmount the partition:
sudo umount /dev/vdb1 - Repair with verbose output:
- Remount after completion:
sudo mount /dev/vdb1 /mnt
Always unmount the XFS volume before running
xfs_repair to avoid data corruption.Checking and Repairing an ext4 File System
Runfsck.ext4 with verbose, forced check, and preen (auto-fix simple issues):
-v: verbose output-f: force check even if clean-p: preen mode for unattended fixes
Do not run
fsck on a mounted ext4 partition, especially the root (/), as it may cause data loss.Monitoring Key Processes
List all service dependencies and their statuses withsystemctl:
●= running○= stopped
Command Summary
Links and References
- df(1) Manual Page
- du(1) Manual Page
- free(1) Manual Page
- xfs_repair(8) Manual Page
- fsck.ext4(8) Manual Page
- systemctl(1) Manual Page