I wonder if it is possible to use
dialog gauge option to create a graphic displaying the percentage of disk used vs disk capacity? And if so, how could I do it?
Generically speaking, how can I use
dialog to compare between two different values?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You might want to take a look at
ncdu, if you want or need a disk-usage utility with a textual user interface. It's based on ncurses, which is what dialog is based on as well. By default, it shows a column, which can be toggled (g), with a graphical representation of the size of the various files and directories.
If you are trying to write a program, however, then show what you've tried and ask for help here or on stackoverflow.