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
Print This Post
Email This Post
Related Articles
- Using YUM package via CentOS online sources in RHEL5
- Update RHEL5 using YUM package via CentOS online sources
- Use netstat in Linux to determine port conflicts
- Linux: Recursively Unzip All Files Into Their Existing Directory
- Install Tomcat 5.5.28 on RHEL5 / CentOS5

