How to see the size of a directory
How to see the size of a directory on Linux?
Use the ds command to see the size of a directory or path on the system.
du -hsWith the du command the directory size can be retrieved. By using it with the options --human-readable and --summarize, a summarized total will be displayed.
Disk Usage
The du tool is very powerful to show disk usage of files and directories, but it needs the right options to get the right information. A good combination to start is using ‘-h’, so the output becomes human-readable and the output size is shown in kilobytes, megabytes, etc.
du -h
Now the output can be long, so summarizing is a good idea.
du -hs
You can also define a specific path
du -hs /etc