The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-01-2007
max29583 max29583 is offline
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
Reply With Quote