7 января 2010 г. 4:50 пользователь Mila <ad...@bigdogs.ru> написал: > Здравствуйте, > > Вопрос не по Ubuntu, но подозреваю, что команды одинаковые в Linux-системах. > У меня есть VPS на CentOS 5.4. В результате то ли ddos-а, то ли просто > ошибки какие-то накопились после длительного аптайма - в общем, он > обвалился, а я сразу не заметила. > А логи ошибок продолжали писаться. Нашла и обнулила два гигантских лога - > nginx'a error.log и mysql. Но по уменьшившемуся свободному месту вижу, что > где-то еще порылись очень большие файл
! 99;. > Вопрос - как искать файл по размеру? Например, найти все файлы больше 10 Мб. > Иксов нету, только удаленный терминал. > Заранее спасибо. > > С уважением, Людмила > -- > ubuntu-ru mailing list > ubuntu-ru@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru > >
find -size +10M man find говорит нам: -size n[cwbkMG] File uses n units of space. The following suffixes can be used: `b' for 512-byte blocks (this is the default if no suffix is used) `c' for bytes `w' for two-byte words `k' for Kilobytes (units of 1024 bytes) `M' for Megabytes (units of 1048576 bytes) `G' for Gigabytes (units of 1073741824 bytes) The size does not count indirect blocks, but it does count blocks in sparse files that are not actually allocated. Bear in mind that the `%k' and `%b' format specifiers of -printf handle sparse files differently. The `b' suffix always denotes 512-byte blocks and never 1 Kilobyte blocks, which is differ‐ ent to the behaviour of -ls. -- ubuntu-ru mailing list ubuntu-ru@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru