dfとdu

マニュアルに載っていることですが、今まで利用していませんでした・・・

  • du

-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte and Petabyte
-s Display an entry for each specified file. (Equivalent to -d 0)

# du -sh vim7
101M    vim7
  • df

-H "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
number of digits to three or less using base 10 for sizes.

-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
number of digits to three or less using base 2 for sizes.

# df -H
Filesystem             Size   Used  Avail Use% マウント位置
/dev/disk0s2            80G    47G    33G  59% /
devfs                  1.1k   1.1k      0 100% /dev
fdesc                  1.1k   1.1k      0 100% /dev
<volfs>                525k   525k      0 100% /.vol