Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux sort folders by size

du -sh -- *  | sort -rh  # Files and directories, or
du -sh -- */ | sort -rh  # Directories only
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #sort #folders #size
ADD COMMENT
Topic
Name
1+9 =