Strange Directory being used as a file - Solaris 9
Posted on 2006-11-01
There are a couple of directories that appear like they are being used as files:
audit = 114688 bytes
fmlogin.db = 10240 bytes
There is nothing in these directories; no files, no pipes, no directories! If I do a "od -c audit" it is filled with binary (like "\0 \0 \0 \0 \0") just like a "normal" directory, but bigger.
But for an EMPTY directory why is the size so big?
If I do a "cp -pR audit temp0" the "contents" of audit are not copied. ls -l temp0 = 96 bytes, just like a normal directory.
Isn't the size shown for a "ls -l" of a directory = size of inodes being used?
Many thanks, Allan