Skip to content
Home » How to find size of the folder in linux

How to find size of the folder in linux

To find size of the folder in linux we can use du command with suitable options. The du command will give an detailed view of each file in the specified folder. The command is as below :

du -hs /path/to/folder

If you want to get the output in an sorted way based on the file size then use:

du -h | sort -h

Also Read:

How to use docker without sudo
Where is the cron log ?