Space A Directory Is Using

Discussion in 'Site & Server Administration' started by sayyes, Aug 6, 2006.

  1. #1
    Can someone refresh my memory on the Linux command that tells you how much space the contents of a directory is taking up on the disk?
     
    sayyes, Aug 6, 2006 IP
  2. wheel

    wheel Peon

    Messages:
    477
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    df

    must type in other stuff to meet the required minimum 10 characters (said in a droning computer voice).
     
    wheel, Aug 6, 2006 IP
  3. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think you want the disk usage command: du -sh <directory> or du -sh . for the current directory.
     
    Cryogenius, Aug 6, 2006 IP
  4. wheel

    wheel Peon

    Messages:
    477
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ahem. yup, that's correct. I do both, thus my confusion!
     
    wheel, Aug 7, 2006 IP