Find out directory size in Linux:



du -ch | grep total                     (or)                 du --total | grep total       

This would display one line output showing the total size of the current directory including all the sub-directories.

Or

du -sk * | sort –n


The above command will sort the folders by size.

No comments:

Post a Comment