DebugFactor.com | Forum

How to find the size of files in a folder in linux

I need to find the total size of all files in a folder.

To find the size of the entire folder, navigate to the path and execute the below command
du -sh
To find the size of all files inside the path, execute the below command
du -sh *
To find the size of all files inside the path in sorted order, execute the below command
du -sh * | sort -nr