Tuesday, June 21, 2011

Unix: Get total size of mutliple folders or files

The following command gives the total size of the folders you have selected at the end of the list.
 $ du -sch foo/ dummy/ data/ booger/  
 3G     foo/  
 2G     dummy/  
 9G     data/  
 5G     booger/  
 19G    total