Discussion:
ls directories 5th column
e***@fsa.com
2003-07-10 16:53:38 UTC
Permalink
when you do an ls -al and see directories what does the number in the 5th
column mean?

for example in the following what does "6144" mean?

regards!

drwxrwxr-x 6 root bin 6144 Jun 27 15:20 sbin/
Hobbs, Richard
2003-07-10 17:12:10 UTC
Permalink
Hello,

In UNIX, directories are actually held on the filesystem as files. Those
files contain a list of files within it, so when you view a directory, it
just points at loads of other files.

Therefore, you never see the directory as a file, but it is actually
stored as one.

The 6444 means the number of bytes that directory file is, so the more
files you have in that directory, the bigger the number becomes, because
it's an index of the files "within" it. It's not the size of the files
within it, just the number of them, that increases the directory size.

Make sense??

Hope so :-)
--
Richard Hobbs <***@mongeese.co.uk>
http://mongeese.co.uk | http://unixforum.co.uk

"There's only one way of life, and that's your own" - The Levellers

Registered Linux User: 313906
_____________________________________________________
-----Original Message-----
Sent: 10 July 2003 17:54
Subject: ls directories 5th column
when you do an ls -al and see directories what does the
number in the 5th column mean?
for example in the following what does "6144" mean?
regards!
drwxrwxr-x 6 root bin 6144 Jun 27 15:20 sbin/
_______________________________________________
sunmanagers mailing list
http://www.sunmanagers.org/mailman/listinfo/su> nmanagers
[demime 1.01b removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]
Loading...