Unix/Linux Find Size of Files in a Directory

Unix/Linux Find Size of Files in a Directory

Wait… before I try to copy this directory recursively, how big is it?

du -sh /path/to/directory
image 15 - Unix/Linux Find Size of Files in a Directory

-s : Display for the entire folder, not for all subfiles separately

-h : Display size in human-readable format: KB, GB, TB..

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.