Hiya.
Let me try to spell this out simply...
- A file contains whatever data is put in it
- A directory contains the names of the files that are listed in it - and their inode numbers
- An inode contains metadata describing a file (or directory - in linux/unix, *everything* is a file). This includes:
- the size of the file,
- the file's physical location (i.e., the addresses of the storage blocks containing the file's data on disk)
- the file's owner and group
- the file's access permissions
- timestamps telling when the inode was created, last modified and last accessed
- a reference count telling how many hard links point to the inode.
So, an inode has a fixed size of 1024, which is sufficient to contain all the above
Clear?
Probably not, so I'll guess that what you really wanted was a way to figure out the size of the stuff in the directory?
in which case...
Code:
cd <to the directory you are interested in>
du -sh *
if you have a directory with a lot of files, you might want to use these:
Code:
du -sh * | sort -n # to the end of that command, or if you're looking for large files...
du -sh * | egrep '[0-9]G' | sort -n # which will (almost always) only show files with more than 1Gb in.
Feel free to ask for clarification or further Q's 
Bookmarks