I would like to monitor disk space usage. I'm using HP-UX and the bdf
command.
I would like to check one directory and I can do that: bdf /exploit/
I would like to get only the row %used. How can I do it?
I would like to monitor disk space usage. I'm using HP-UX and the bdf
command.
I would like to check one directory and I can do that: bdf /exploit/
I would like to get only the row %used. How can I do it?
for /exploit only
bdf /exploit | awk 'NR==2 { printf "%d\n",$5 ;}
for any filesystem
bdf | awk '{printf "%3d %s\n",$5,$6}'
note
%s
instead of %d
to get back %
sign...%d %%