How to get readable output from df on HP-UX

df -Pk | awk ‘
BEGIN {print “Filesystem Mount Point Total GB Avail GB Used GB Used”
print “———————————– ————————- ———- ———- ———- —–“}
END {print “”}
/dev/ || /^[0-9a-zA-Z.]*:\// {
printf (“%-35.35s %-25s %10.2f %10.2f %10.2f %4.0f%\n”,$1,$6,$2/1024/1024,$4/1024/1024,$3/1024/1024,$5)
}’

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.