The UNIX and Linux Forums
>
Special Forums
>
Filesystems, Disks and Memory
sum in df command
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
sum in df command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-01-2007
max29583
Registered User
Join Date: Dec 2006
Location: UK
Posts: 29
Hi Buddy,
u can try the command as below
df -h|awk '{s+=$3} END {print s}'
here $3 is the 3rd column of df -h output. If u want to get sum of any other column just type $<column number> for that column
max29583
View Public Profile
Find all posts by max29583