Script that collects and displays information about system health, CPU usage, memory consumption, disk space and running processes
- Build a script that collects and displays information about system health, including CPU usage, memory consumption, disk space, and running processes.
- The script generates a dashboard-like output in the terminal
- Skills Demonstrated: System monitoring, data collection, and reporting.
- Display CPU usage
- Show memory consumption
- Report disk space usage
- List running processes
- Save the report to a file (optional)
- OS:
Linux
- Required Tools: You need
bash
,awk
,top
,df
, and possiblyps
. - Permissions: Ensure script has execute permissions:
chmod -R 700 ./path/to/System-Status-Dasshboard
- Run the script from the terminal:
./main.sh
- The Shell Scripting Tutorial - This tutorial is written to understand some of the basics of shell script programming (aka shell scripting), and to introduce some of the possibilities of simple but powerful programming available under the Bourne shell.