Skip to content

ugolnikovE/minitop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitop

minitop is a lightweight Linux console utility that displays key system metrics in a clear, minimal format. Think of it as a "mini-top" that shows only the essentials: CPU usage, memory, storage, and system uptime.


✨ Features

  • Clear display of essential metrics:

    • CPU
    • RAM
    • Storage
    • Systime
  • Supports two display modes:

    • Percentages (%)
    • Absolute values (e.g., 8/16 GB)
  • Configurable update interval

  • Interactive keyboard controls


💻 Installation

Build with CMake:

git clone https://github.com/ugolnikovE/minitop
cd minitop
cmake -Bbuild
cmake --build build

Note: minitop currently does not install to /usr/bin or similar.


⚡ Usage

./minitop [OPTIONS]

Example Output:

┌───────┬───────┐
│Metric │Value  │
├───────┼───────┤
│CPU    │0.60 % │
│RAM    │17.36 %│
│Storage│0.46 % │
├───────┼───────┤
│Systime│17403  │
└───────┴───────┘

📋 Options

  -h, --help       Show help message
  -p, --percents   Display metrics in percentages
  -v, --values     Display metrics in absolute values
  -i, --interval   Set update interval in seconds

⌨️ Interactive Keys

  q  Quit the program
  1  Switch to percentage display mode
  2  Switch to absolute value display mode

💡 Motivation

This project was created for educational purposes to:

  • Practice teamwork in software development
  • Learn C++
  • Create a wrapper for a custom C library for monitoring system resources (sysload)

📄 License

This project is licensed under the MIT License — see LICENSE for details.

About

A lightweight Linux console system monitor. Written in C++ using a custom system monitoring library.

Topics

Resources

License

Stars

Watchers

Forks

Contributors