A simple Bash script to analyze basic Linux server performance statistics.
- Total CPU usage
- Total memory usage with free/used percentage
- Total disk usage with free/used percentage
- Top 5 processes by CPU usage
- Top 5 processes by memory usage
- OS version
- Uptime
- Load average
- Logged-in users
- Failed login attempts
The project from: https://roadmap.sh/projects/server-stats
Before running the script, you need to grant executable permission to server-stats.sh:
chmod +x server-stats.shOnce the script has execution permission, you can run it using the command:
./server-stats.sh