揮発性のメモ2

http://d.hatena.ne.jp/iww/

ファイルサイズが大きいファイルの一覧を作る

ファイルサイズが大きいファイル一覧の上位10件を表示

# find / -xdev -type f | xargs du -x -h 2>/dev/null | sort -hr | head -n 10

42M     /usr/lib/arm-linux-gnueabihf/libLLVM-6.0.so.1
36M     /var/cache/ti-pru-cgt-installer/ti_cgt_pru_2.1.5_armlinuxa8hf_busybox_installer.sh
27M     /var/cache/apt/srcpkgcache.bin
27M     /var/cache/apt/pkgcache.bin
25M     /usr/lib/arm-linux-gnueabihf/libicudata.so.57.1
23M     /usr/lib/python3.5/config-3.5m-arm-linux-gnueabihf/libpython3.5m-pic.a
22M     /usr/lib/python3.5/config-3.5m-arm-linux-gnueabihf/libpython3.5m.a
21M     /usr/share/ti/opencl/dsp.out
21M     /lib/firmware/dra7-dsp2-fw.xe66
21M     /lib/firmware/dra7-dsp1-fw.xe66


ディレクトリとか全部ひっくるめて見たいときは
sortコマンドで 16Mや255Kなど ヒューマンに優しい数値をソートする - 揮発性のメモ2