Thursday, December 1, 2011

check directory/dir/file size in linux

#check partition sizes df -h 
 
#check directory size du -s -h /var/log/   
 
#check every directory and file sizes under a dir. 
du -s -h /var/log/* 
 
#check individual size size du -s -h /var/log/lastlog 

0 comments:

Post a Comment