-
The project from: https://roadmap.sh/projects/server-stats
-
Total CPU usage
-
Total memory usage (Free vs Used including percentage)
-
Total disk usage (Free vs Used including percentage)
-
Top 5 processes by CPU usage
-
Top 5 processes by memory usage
make sure you have free installed
- Step 1: Make the script executable
chmod +x server-stats.sh- Step 2: Run the script
./server-stats.sh