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.
maurits@mauritsvanrees:~/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:
maurits@mauritsvanrees:~/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:
maurits@mauritsvanrees:~/web$ dum | sort -rg
16058   .
14593   ./preken
1081    ./studie
232     ./weblog
93      ./links
24      ./images

Добавить комментарий

Ваш e-mail не будет опубликован.