Гриша Жемчужный ([info]gregbg) wrote in [info]ru_mac,
@ 2006-09-03 16:25:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Почему программа du выдает в два раза большие размеры директорий, чем на самом деле?


(Post a new comment)


[info]fima
2006-09-03 03:11 pm UTC (link)
Она их выдает в блоках по 512 байт.
du -h вас спасет.

(Reply to this) (Thread)


[info]gregbg
2006-09-03 03:19 pm UTC (link)
спасибо, хотя теперь du | sort -n | tail выдает не то, что раньше ;)

(Reply to this) (Parent)(Thread)


[info]fima
2006-09-03 03:32 pm UTC (link)
Придется, думаю, воспользоваться man du (и man sort заодно, т.к. комада не совсем верна, хотя, полагаю, дает желаемый результат).

du -k | sort -n -k 1 | tail

(Reply to this) (Parent)(Thread)


[info]gregbg
2006-09-03 04:48 pm UTC (link)
спасибо большое!

(Reply to this) (Parent)


[info]levgem
2006-09-03 05:22 pm UTC (link)
du -hs пользуйтесь — куда как удобнее

(Reply to this) (Thread)


[info]gregbg
2006-09-03 05:24 pm UTC (link)
см. выше, иногда хочется знать, кто именно жрет больше всего места.

(Reply to this) (Parent)(Thread)


[info]levgem
2006-09-03 05:25 pm UTC (link)
Я обычно делаю так:
cd /
du -hs *

Далее начинаем копаться.

(Reply to this) (Parent)


[info]jkolin
2006-09-03 06:47 pm UTC (link)
пользуйтесь Disk Inventory X

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…