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 ...
- 01-25-2009 #1Just Joined!
- Join Date
- Jan 2009
- Location
- Hyderabad(India)
- Posts
- 23
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
- 01-26-2009 #2Just 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.


Reply With Quote