Using Red Hat Enterprise Linux 5.5 and CentOS 5.5, I wanted to know the size of the existing folder. The following two commands are useful for the desired result.

 du -h | grep -v '/' | awk '{print $1}' 

 du -h | tail -n 1 

source

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
      Print This Post       Print This Post       Email This Post       Email This Post

Related Articles37 views