Skip to content

CLI tool for real-time CPU monitoring and load average display.

License

Notifications You must be signed in to change notification settings

ezhil56x/cpuinfo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

CPU Info CLI Tool

Introduction

CPU Info is a simple CLI tool to monitor system metrics, including the number of CPU cores, CPU percentage, and load average. The tool utilizes the psutil library to gather system information. This uses Python's optparse module to parse command-line arguments.

Requirements

  • Python 3.x
  • psutil library

Usage

To use the application, you can run the script with various options as follows:

cpuinfo -n       # Print the number of CPU cores
cpuinfo -c       # Print the CPU percentage
cpuinfo -l       # Print the load average
cpuinfo -s       # Continuously stream the values
cpuinfo -h       # Print the help message

Installation

To install CPU Info CLI Tool, follow these steps

  1. Clone the repository
git clone https://github.com/ezhil56x/cpuinfo-cli.git
  1. Change the working directory
cd cpuinfo-cli
  1. Install the psutil library
pip install psutil
  1. Make the script executable
chmod +x cpuinfo
  1. Move the script to the bin directory
sudo mv cpuinfo /usr/bin
  1. Run the script with the help option
cpuinfo -h

About

CLI tool for real-time CPU monitoring and load average display.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages