This is a simple command-line interface (CLI) tool built with Python π and psutil π that allows you to monitor your systemβs resource usage and manage processes.
- π§ Display current CPU usage percentage
- 𧬠Show memory usage percentage
- πΎ Check disk usage of the root directory
- π List all running processes with their PID, CPU, and memory usage
- π Find the PID of a process by its name
Run the script and choose from the menu options:
- π§ CPU Usage
- 𧬠Memory Usage
- πΎ Disk Usage
- π Process List
- π Get PID of a specific process
- πͺ Exit the tool
- π
psutillibrary β install withpip install psutil - π Python 3.x
Choose an option: 1) CPU Usage 2) Memory Usage 3) Disk Usage 4) Process List 5) Process Pid 6) Exit Choice: 1 CPU Usage: 23.5%
This tool runs in an infinite loop until you choose to exit. Make sure to run it in a terminal or command prompt that supports interactive input π‘