disk usage; split

按k/M/G单位显示各分区大小:df -hweb

显示文件大小:dushell

  • 包括文件,而非仅是目录:-a或–all
  • produce a grand total: -c
  • print sizes in human readable format: -h, –human-readable
  • do not include size of subdirectories: -S, –separate-dirs
  • display only a total for each argument: -s, –summarize
  • exclude files that match a shell pattern (not a regular expression): –exclude=
  • -d, –max-depth=

split [OPTION]… [INPUT [PREFIX]]express

  • default to two: -a, –suffix-length=
  • size per file. can be followed by KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y: -b, –bytes=
  • suffixes not alphabetic: -d, –numeric-suffixes
  • specify number of files: -n, –number= use cat to combine them again.