Are there any commands that will display the size of the contents of a folder? I can use ls -l to get the size of the files in a folder, or df -h to get the space used on my disks, but neither of these seems to give me the size of the contents of a folder. Is there an easy solution for this?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
||||
|
|
|
Use
The |
|||||||||||||||
|
|
Recently I found a great, ncurses based interactive tool, that quickly gives you an overview about directory sizes. Searched for that kind of tool for years.
Think of it as baobab for the command line:
|
|||
|
|
|
du /foldername is the standard command to know the size of the folder.It is best practice to know the options by reading man page. man du . read man page before you use the command. |
|||
|
|