LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2012, 03:14 AM   #1
mmhs
Member
 
Registered: Oct 2010
Posts: 101

Rep: Reputation: 1
Directory Size


dear all

i have a simple question

i know Block Size in linux is 4K therefore ls -l shows directories size is 4096

but why some directories are not like this

drwxr-xr-x 6 root root 4096 May 11 2011 dummy
drwxr-xr-x 140 root root 12288 Jul 20 04:03 etc
drwxr-xr-x 2 root root 4096 Jan 9 2012 ram
drwxr-x--- 32 root root 16384 Jul 18 08:20 root
 
Old 07-20-2012, 03:47 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
That directories occupy more then one block (precisely: entries in this directory). For example: 12288/4k=3, 16384/4k=4.

Quote:
Block Size in linux is 4K
It depends on file system and for ex. in ext4 can be overridden.

Last edited by eSelix; 07-20-2012 at 03:49 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Store the size of largest file from a file/directory listing into variable SIZE lainey Linux - Newbie 3 11-15-2011 12:29 PM
directory size includes size of .. leostar_10 Linux - Newbie 4 12-03-2007 04:12 PM
How to know the size of a directory? kornerr Linux - General 4 06-30-2005 09:59 AM
directory size chandan Linux - General 3 06-26-2003 08:51 AM
how could I know the directory size gsbarry Linux - General 4 03-07-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration