cinfo - Man Page
system information utility
Synopsis
Description
cinfo is a fast and minimal system information tool for linux-based operating systems
Options
Without given settings, start colored version. If the environment variable NO_COLOR is set, start plain ascii version.
- -a
Start plain ascii version.
- -c
Start colored version.
- -d
Delete the cached files defined in the config.
- -i
Displays information about execution times of the individual functions for optimization and the version number of the tool
Customization
cinfo can be customized by creating/editing a custom config.h and (re-)compiling the source code.
- PKGS*
Values to configure package manager counting.
Example values for some distros:
Distro | PKGS_CMD | PKGS_DESC |
Arch | ls -p /var/lib/pacman/local | grep -c / | [pacman] |
Red Hat | rpm -qa | wc -l | [rpm] |
Red Hat | dnf list installed | wc -l | [dnf] |
Red Hat | yum list installed | wc -l | [yum] |
Debian | dpkg -l | grep -c `^ii' | [apt] |
Gentoo | qlist -I | wc -l | [portage] |
The result of the shell command in PKGS_CMD must be an integer!
- CPU*
Values to configure cpu information.
- MEMORY*
Values to configure memory information.
MEMORY_METHOD
Value | Calculation | Comparable |
0 | total - available | htop = 3.1.0, btop, polybar |
1 | total + shared - free - buffer - cached | htop < 3.1.0, neofetch |
2 | total - free - buffer - cached | htop > 3.1.0, free |
MEMORY_UNIT
Value | Condition | Description |
auto | total => 1024 MiB | Displays result in Gibibyte |
total < 1024 MiB | Displays result in Mebibyte | |
GiB | Displays result in Gibibyte | |
MiB | Displays result in Mebibyte |
- SHELL*
Values to configure shell information.
- INFO*
Values to configure information in general.
- LABEL*
Values to configure labels for ascii and color table.
- COLOR*
Values to configure color table.
- ASCII*
Values to configure ascii table.
- CACHE*
Values to configure the cache paths.
Examples
cinfo
cinfo -a
cinfo -c
cinfo -d
cinfo -i
Bugs
See GitHub Issues: https://github.com/mrdotx/cinfo/issues
Authors
cinfo was written by mrdotx <klassiker@gmx.de>
See Also
htop(1), free(1), neofetch(1), polybar(1)
License
See the LICENSE.md file for the terms of redistribution.