How do I find the size of a directory on a Unix-like command-line?
du -s directory
, as in "disk usage, sum"
Use du -sk
to show the size in kilobytes (default is to show number of 512-byte blocks), or du -sh
for a more human-friendly output. For more options, type man du
.