//View Tip #249
Similar Tips
» iso2cd
» Random xkcd comic
» Crawl a web page for links
» Print first line of every paragraph
» Find occurrences of a string in a large code base without firing

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Longish oneliner (I actually wrote it in one line first) for giving you somewhat (mount list is never good enough) accurate sum of your file systems' totals.


df | egrep -v "(Filesystem|\/dev$|shm$|dvd|cdrom)" | awk '{totalu += $2 ; totalf += $4} END {print "Total space in devices: " (totalu/1024/1024) " GB\nFree space total: " (totalf/1024/1024) " GB"}'


View Comments »




Comments 

Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit