LinuxCommandLibrary

bashtop

Monitor system resources visually

SYNOPSIS

bashtop [OPTION...]

PARAMETERS

-h, --help
    Show this help dialog.

-v, --version
    Show version information.

-l, --log
    Enable logging to log file.

-i, --no-avg
    Disable showing average CPU usage.

-d, --debug
    Show debug information.

-b, --batch
    Batch mode. No interactivity.

-c, --config <file>
    Specify alternate config file.

-p, --preset <name>
    Load given preset.

-u, --update-interval <ms>
    Update interval milliseconds.

-C, --cpu_graph
    Toggle CPU graph display.

-P, --proc
    Toggle processes list.

-M, --mem_graph
    Toggle memory graph.

-N, --net_graph
    Toggle network graph.

-A, --all_graphs
    Toggle all graphs at once.

-S, --swap
    Toggle swap graph.

-D, --disk_graph
    Toggle disks graph.

-O, --options
    Toggle options box.

-E, --extra
    Toggle extra info box.

-R, --remote
    Toggle remote system boxes.

-B, --battery
    Toggle battery display.

-K, --kill_menu
    Toggle kill process menu.

-t, --theme <file>
    Load theme file.

DESCRIPTION

Bashtop is an all-in-one, interactive system monitoring tool for Linux terminals, providing real-time visualizations of CPU usage, memory consumption, disk I/O, network traffic, and running processes. It features colorful bar graphs, meters, and a process list with tree view support, surpassing traditional tools like top in aesthetics and usability.

Key highlights include full mouse support for navigation and resizing, customizable update rates, dynamic presets for layouts, and extensive theming options. Users can toggle individual components such as CPU graphs, network stats, disk usage, battery info, and remote system monitoring. Process management is streamlined with search, filtering, sorting, and kill functions directly from the interface.

Designed for efficiency in resource-constrained environments, bashtop leverages bash scripting for high portability across distributions. It supports UTF-8, color-blind modes, and logging for debugging. While interactive by default, batch mode allows non-interactive use for scripting.

Ideal for sysadmins and power users seeking a modern, eye-candy alternative to htop, bashtop combines functionality with visual appeal, though its bash nature may limit performance compared to compiled alternatives.

CAVEATS

Requires Bash 4.4+ and utilities like procps, sysstat. No longer actively maintained; slower than C-based alternatives like btop. May not work on all systems without dependencies.

CONTROLS

Arrow keys: Navigate/sort processes.
F1: Help.
F2: Options/presets.
F3: Search/filter.
F5: Tree view.
F6/F9: Kill process.
Mouse: Click/drag supported.
q/Esc: Quit.

INSTALLATION

Via packages: sudo apt install bashtop (Debian/Ubuntu), sudo dnf install bashtop (Fedora).
Or: git clone https://github.com/aristocratos/bashtop.git && sudo ./install.sh -u.

HISTORY

Created by aristocratos in 2019 as a feature-rich htop alternative written in pure bash. Exploded in popularity via GitHub (over 10k stars). Maintenance stopped around 2021; author released btop, a faster C++ rewrite.

SEE ALSO

top(1), htop(1), btop(1)

Copied to clipboard