kmon offers a text-based interface to manage loadable kernel modules and watch kernel activity on Linux. It combines tasks that usually need separate tools like dmesg and kmod into one terminal window.
Overview
kmon is a Linux Kernel Manager and Activity Monitor built as a terminal user interface. It lets you load, unload, blacklist, and inspect kernel modules, and follow hardware logs and kernel messages in a real-time activity view.
The interface is organized in blocks you can resize, reorder, and scroll. You can search modules by name or regular expression, view dependent modules, jump between them, reload modules, and clear the kernel ring buffer. Kernel release, version, and platform information are available in dedicated views.
The tool is written in Rust and uses Ratatui and termion for the TUI. It expects standard utilities such as dmesg and kmod on the system. Install options mentioned in the project include Cargo, Linux distribution packages, Nixpkgs, Alpine, Docker, and manual binaries.
Customization includes terminal colors and accent colors, Unicode block titles, configurable refresh tick rate, and sorting of the module list by name, size, or dependencies.
Key features
- Load and unload kernel modules
- Blacklist and reload modules
- Real-time kernel activity monitor
- Module search and regex filtering
- Dependent module display and navigation
- Clear kernel ring buffer
- Adjustable UI blocks and colors
- Sort modules by name, size, or deps
Use cases
- Managing loadable kernel modules without separate CLI tools
- Watching kernel and hardware messages in one place
- Inspecting module status and dependencies
- Docker-based kmon sessions on Linux hosts