User Tools

Site Tools


bash:list_files_by_size

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bash:list_files_by_size [2016/10/18 09:16] – created peterbash:list_files_by_size [2021/01/26 12:14] (current) – removed peter
Line 1: Line 1:
-====== Bash - List files by size ====== 
  
-<code bash> 
-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 
-</code> 
bash/list_files_by_size.1476782193.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki