ubuntu:bash:list_files_by_size
This is an old revision of the document!
Ubuntu - Bash - List files by size
du --max-depth=1 | sort -n -r | perl -ne '($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f";last};$s=$s/1024}' du -csh === du -chd0 du -csh */ | sort -h du -sh */ | sort -h du -h -d1 ls -lhS
References
ubuntu/bash/list_files_by_size.1575024575.txt.gz · Last modified: 2020/07/15 09:30 (external edit)