Command du

The du utility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed.

  • 디렉토리와 λͺ¨λ“  ν•˜μœ„ λ””λ ‰ν† λ¦¬μ˜ μš©λŸ‰μ„ ν‘œμ‹œ

Example

  • μ„ νƒν•œ λ””λ ‰ν† λ¦¬λ§Œμ˜ μš©λŸ‰μ„ ν‘œμ‹œ
du -sh /something
du -sh /something/* // μ•„λž˜λ„ ν‘œκΈ°
  • κ°€μž₯ λ§Žμ€ μš©λŸ‰μ„ μ°¨μ§€ν•˜λŠ” 디렉토리 μ°ΎκΈ°
du -h --max-depth=1 | sort -hr
  • directory도 μ‹€μ œ μš©λŸ‰μ„ ν‘œμ‹œ
du -h --apparent-size

Reference