ubuntu
Get total size of a directory or folder in Ubuntu
To get the total size of a directory or a folder in Ubuntu you can use du -hs command and it will print the total size of that directory using.
# If you are in same directory
------------------------------
du -hs
# If you are in different location
----------------------------------
du -hs /path/to/directory
# If you want to list the size seperatyly for each sub directory
----------------------------------------------------------------
du -h | sort -h
Was this helpful?
Similar Posts
- Copy all folder content to another folder In Ubuntu
- Create a new directory or folder in Ubuntu
- Remove or Delete a folder or directory in Ubuntu
- Change directory name or rename a directory in Ubuntu
- Copy a directory along with its content to another directory in Ubuntu
- Find all empty directories in a directory in Ubuntu
- Delete all empty directories in a directory in Ubuntu