Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to find directory size in Linux

du is a Linux command, is to display the file space allocated to each file and Directory contained in the current directory. It Summarize disk usage of each FILE, recursively for directories.

                        # du    - List of directories that exist in the current directory along with their sizes.

                       # du -c   -Gives grand toal as last line of output.

                       # du -s    -Displays summary of directory size.

                         # du -h   -Displays size in human readable format.

Sort Directory size in ascending order.

                         # sudo du -sh * | sort -hr

This post first appeared on AdminCool, please read the originial post: here

Share the post

How to find directory size in Linux


Subscribe to Admincool

Get updates delivered right to your inbox!

Thank you for your subscription