Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.42 KB

File metadata and controls

46 lines (39 loc) · 1.42 KB

🖥️ System Monitor CLI Tool

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.

✨ Features

  • 🧠 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

🛠️ Usage

Run the script and choose from the menu options:

  1. 🧠 CPU Usage
  2. 🧬 Memory Usage
  3. 💾 Disk Usage
  4. 📋 Process List
  5. 🔍 Get PID of a specific process
  6. 🚪 Exit the tool

📦 Requirements

  • 📚 psutil library → install with pip install psutil
  • 🐍 Python 3.x

🖥️ Example


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%

🔁 Note

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 💡