0

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/

enter image description here

I would like to get only the row %used. How can I do it?

1 Answers1

0

for /exploit only

bdf /exploit | awk 'NR==2 { printf "%d\n",$5 ;}

for any filesystem

bdf | awk '{printf "%3d %s\n",$5,$6}' 

note

  • you can use %s instead of %d to get back % sign...
  • or use %d %%
Archemar
  • 31,554