Disk quota exceeded on your account — ПОИСК САМЫХ БОЛЬШИХ ПАПОК

Disk quota exceeded on your account
— делает поиск того что у вас много занимает на сайте .. (ФАЙЛЫ И ТП)
ПОИСК САМЫХ БОЛЬШИХ ПАПОК

du --max-depth=1 -h 

find . -maxdepth 1 -exec du -ks {} \; | sort -rn | head -n 15 






I use two aliases for du:
alias dum='du --max-depth=1'
alias duh='du -h --max-depth=1'
dum signifies max-depth and duh signifies human-readable. "--max-depth=1" makes sure you get the disk usage for the complete directory and not for every individual ((sub)sub)subdirectory. Most of the time that is the info I want.
[email protected]:~/web$ duh
93K     ./links
24K     ./images
15M     ./preken
1,1M    ./studie
232K    ./weblog
16M     .
The human readable part does not work so well when sorting:
[email protected]:~/web$ duh | sort -rg
232K    ./weblog
93K     ./links
24K     ./images
16M     .
15M     ./preken
1,1M    ./studie
This sorts by numerical value, but the difference between a number with M or K at the end goes beyond sort. [BTW, I don't see any difference between 'sort -n' and 'sort -g'.] That's where the 'dum' alias comes in handy:
[email protected]:~/web$ dum | sort -rg
16058   .
14593   ./preken
1081    ./studie
232     ./weblog
93      ./links
24      ./images

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>