what does directory's size in Linux mean?

Discussion in 'Linux' started by Prabhu.r.b, Feb 15, 2006.

  1. Prabhu.r.b

    Prabhu.r.b New Member

    Joined:
    Feb 15, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hi folks,
    i'm new to linux.
    directory's size in linux is not equal to total size of files present in it.
    Then how is directory's size calculated.

    Thanks,
    Prabhu
     
  2. coderzone

    coderzone Super Moderator

    Joined:
    Jul 25, 2004
    Messages:
    736
    Likes Received:
    38
    Trophy Points:
    28
    In Linux everything is a file. Even an I/O device like monitor is a file and so each folder is a file to hold the files in it. Something like file of file and so it has some storage. My Fedora Core 4 gives each folder size as 4 KB. Probably to store the attributes and security data about the folder.
     
  3. Prabhu.r.b

    Prabhu.r.b New Member

    Joined:
    Feb 15, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    thanks for ur reply.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice