Use kmon (TUI) to easily load, unload and blacklist kernel modules

on Is the new command line kernel manager and activity monitor. It can be used to load, unload and blacklist kernel modules, and display module information. The tool also displays kernel activity (hardware logs, etc.) in real time.
This command line tool is written in Rust, and thanks to the tui-rs and termion libraries, it uses a text-based user interface (TUI).

The user interface is responsive, so it scales with the size of the terminal window you are running in. It consists of 5 information blocks: a search bar, a list of kernel modules, module information, kernel activities, and a block that displays the kernel release, version, and platform.
You can use the keyboard to navigate between these blocks: use ← / → Either h / l. To scroll up or down within the selected block, use ↑ / ↓ key, k / j Either alt-k / alt-j. Use the following command to load the kernel module +, i, Or insert, Use uninstall -, u Either backspaceAnd use the module to blacklist x, b Either delete. You can also copy the information displayed in the active block of the kernel-just press c Copy the text.
You can view all available keyboard shortcuts by pressing the following button ? Either F1.
The options supported by kmon include the reverse list of the kernel module list (-r / --reverse) To display the Unicode symbol of the block title (-u / --unicode), using hexadecimal or color name (-c / --color COLOR), and set the refresh rate of the terminal in milliseconds (-t / --tickrate MS).
You can also sort Linux modules by their name (sort -n / --name) And size (kmon sort -s / --size).
There is nothing left to say about this little command-line utility, so I will not bring you useless details only related to neighbors. I just think it is useful and hope to share it with you. chkservice is a system unit manager with a terminal user interface (new version available)

Download and install kmon

You can install kmon using the pre-compiled binary file that can be downloaded from the GitHub version page of the tool, in this case you need to move the binary file to /usr/local/bin/ And optional man page /usr/local/man/man1/, For example, in the folder where you extracted the kmon version binary archive (.tar.gz):

sudo install kmon /usr/local/bin

sudo cp man/kmon.8 /usr/local/man/man1/kmon.1

Or install it using Cargo, Rust package manager, and crate host:

cargo install kmon

Arch Linux / Manjaro users can also choose Install kmon from AUR.

Source

Sidebar