Simple CLI to retrieve CPU, memory, and disk usage details as percentages.
Go to file
Rudis Muiznieks 8fdd8176fa
initial commit
2024-06-13 17:02:58 -05:00
src initial commit 2024-06-13 17:02:58 -05:00
.editorconfig initial commit 2024-06-13 17:02:58 -05:00
.gitignore initial commit 2024-06-13 17:02:58 -05:00
Cargo.lock initial commit 2024-06-13 17:02:58 -05:00
Cargo.toml initial commit 2024-06-13 17:02:58 -05:00
README.md initial commit 2024-06-13 17:02:58 -05:00

README.md

System Information CLI

Simple CLI to retrieve CPU, memory, and disk usage details as percentages.

CPU usage

Prints the total usage across all cores as a percentage, then the number of cores, then the usage of each core as a percentage.

> sicli cpu --delay-ms 250 --precision 1
1.2 16 0.0 3.8 0.0 0.0 0.0 0.0 0.0 4.0 0.0 0.0 0.0 7.4 3.8 0.0 0.0 0.0

Hard drive usage

Prints the total usage as a percentage, the total disk size, then the total available space.

> sicli disk --root /home --unit tb --usage-precision 1 --size-precision 3
63.0 1.968 0.728

Memory usage

Prints the total usage as a percentage, the total memory, then the available memory.

> sicli memory --unit gib --usage-precision 1 --size-precision 2
29.4 30.70 21.68

Unicode icons

Passing --include-icons as the first argument will precede each usage value with a Unicode bar glyph as a visual approximation of the percentage.

> sicli -i disk -r /home -u tb -p 1 -z 3
▅ 63.0 1.968 0.728

> sicli --include-icons memory --unit gib --usage-precision 1 --size-precision 2
▂ 29.4 30.70 21.68