Answers for "linux sort folders by size"


ubuntu du sort by dir size

du -Sh /path/to/dir | sort -rh | head -20
Posted by: Guest on May-07-2020

linux sort folders by size

du -sh -- *  | sort -rh  # Files and directories, or
du -sh -- */ | sort -rh  # Directories only
Posted by: Guest on September-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language