This script is part of the Server Stats project listed on roadmap.sh. This script collects and displays essential server performance statistics, including:
- Total CPU usage
- Total memory usage (Free vs Used, including percentages)
- Total disk usage (Free vs Used, including percentages)
- Top 5 processes by CPU usage
- Top 5 processes by memory usage
Ensure you have the required permissions and commands [top, free, df, ps, and awk] to execute scripts on your Linux server.
-
Clone the Repository:
git clone https://github.com/Elkordy/Server-Performance-Stats.git cd Server-Performance-Stats
-
Make the Script Executable: chmod +x server-performance-stats.sh
-
Run the Script ./server-performance-stats.sh