Showing posts with label folder size in unix. Show all posts
Showing posts with label folder size in unix. Show all posts

Friday, August 19, 2016

To check directory size in unix

$ du -sh *

It will display the size of all the directories, files in current directory

$ du -sh directoryname

It will display the total size of the given directory

Example:
$ du -sh dir*
$ 5G      dir1
$ 1G      dir2