find . -type d -size +1G - Linux

Table of Contents

我 find . -type d -size +1G 找不到超過1G 容量的資料夾

可是我某個資料夾size total 是 46G

可是怎麼會找不到?

是我指令下錯嗎?

謝謝

--

All Comments

Steve avatarSteve2014-12-21
因為1g是檔案,不是資料夾
Bethany avatarBethany2014-12-25
不能針對資料夾內所有檔案的size嗎?
Adele avatarAdele2014-12-30
du -sm *
Thomas avatarThomas2014-12-30
du -h | sort -h 統計後看看結果
Doris avatarDoris2015-01-01
我都是用 du -h -d 1 | grep [0-9]G
Suhail Hany avatarSuhail Hany2015-01-02
-d 有時候舊版本不支援要改為 --max-depth=1
Kama avatarKama2015-01-03
我是拿來打包備份上傳只支援單檔案1GB的雲端空間用的 XD
Andrew avatarAndrew2015-01-08
type -f 才對!