Find the answer to your Linux question:
Results 1 to 2 of 2
Hello friends,i am relatively new to Linux,.Whenever i say mkdir dir stat dir size:4096 Why is size of empty directory shown as 4096B?? I studied something about i-nodes,but i cannot ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Location
    Hyderabad(India)
    Posts
    23

    Exclamation Size of empty directory??

    Hello friends,i am relatively new to Linux,.Whenever i say
    mkdir dir
    stat dir
    size:4096

    Why is size of empty directory shown as 4096B??
    I studied something about i-nodes,but i cannot correlate that in my case.
    Someone please help me out

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Location
    Bangalore
    Posts
    33
    4096 is 4KB(1 block size ) of data and whenever a dir is created it takes 4kb for storing some sys related info and block size also depends on file system you have.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...