Re: command for disk free ?
David selby wrote:
I am writting a bash script, I need the free memory on my hard disk
partitions. I can get this via gfreedisk or kwikdisk but I need a CLI
command so I can process its standard output.
I have tried man -k free, man -k disk ... etc...but cant find one
I know there must be a linux command for it !
df it is then ...
echo "$(df)" | grep '/dev/hdb1' | cut -c 53-54
gives me the % I need for the rest of the script, this stuff is starting
to make sense!