Rate this post

Что занимает место в Linux ? Небольшой скрипт который поможет быстро разобраться:

find /usr/share/ -type f -exec stat —printf=\»%n %s\\n\» {} \\; | perl -Mdata::Dumper -MFile::Basename -e \’while(<>) {($a,$b)=split(\»\\\\s+\»,$_); $a=basename($a); @splitted=split(\»\\\\.\»,$a); if ($splitted[0] && $splitted[1]) {$e=$splitted[-1]; } else {$e=\»other\»} $hs->{$e}+=$b; } for (keys %$hs) {$total+=$hs->{$_};} for(sort{$hs->{$b} <=> $hs->{$a}} keys %$hs) { $s=$hs->{$_}; $p=int($s/$total*100); if ($p<3) {next}; print \»$_ $p %\\n\» }\’

Меняем /usr/share/ на необходимую директорию.