It`s a bare set of functions for partitions, optical drives, memory, and swap.
Some functions echo user readable text, and some echo raw data ( no parsing ).
I included the most useful info. ( I think...), more are needed. ### Suggestions?
All output is in KB, except the partinfo function is in Bytes to Yattabytes.
It can probably be better ( more simply ) written, always room for improvement.
Code: Select all
It can be sourced as a function library. ". sysinfo"
Run by it`s file name with the functions as an argument. "sysinfo (function)"
Or it has a command to make links to run the functions directly. "sysinfo mklinks"
Most of the functions are rewritten, most are faster.
The *info functions are faster, and have option [-s] to show swap partitions.
# There`s also a very nice converter "Bytes to KB, MB, GB, TB, PB, EB, ZB, YB".
# Improved. Converts from any size upward. Current size must be given.
Current given size options are: -b, -k, -m, -g, -t, -p, -e, -z.
It`s not listed in the help, partinfo uses it. # It`s kinda like an Easter Egg.
I`ll move it to another library when I write others for different purposes.
For help type: sysinfo ,or sysinfo [?, -h, --help]
Gunzip it in: /root/my-applications/bin