Solaris:
1 – (http://unixsadm.blogspot.com/2008/05/custom-df-diskfree-column-output-in.html):
# df -g | nawk '{if (NR % 5 == 1) printf "%-22s", $1 ; if (NR % 5 == 4) printf "%-10s", "fstype " $1 "\n"; if (NR % 5 == 2) printf "%-30s",$1/2/1024/1024 " GB"; if (NR % 5 == 2) printf "%-30s", $4/2/1024/1024 " GB free "}'
2 –
# printf "%s\n" "$(df -k)"
3 –
# ${__?"$(df -k)"}
Linux (by Gux):
# df -P | column -t
No comments:
Post a Comment