[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Wrong size with ls



Hi !

I've just installed a Debian Woody (stable) and I encourtered something strange in my '/var/log' directory. When using both the '-l' and '-s' options of 'ls', the sizes given are incoherent.
For information, 'du -k' gives the same sizes as 'ls -s'.

pc-atinf2:/var/log(58)ls -lsk
total 1024
 32 -rw-r--r--    1 root     root        24082 Dec  7 20:57 XFree86.0.log
  4 drwxr-xr-x    2 root     root         4096 Dec  7 14:08 aide/
 48 -rw-r-----    1 root     adm         16411 Dec  7 21:02 auth.log
272 -rw-r--r--    1 root     root       242805 Dec  7 21:03 daemon.log
  4 -rw-r--r--    1 root     root         1219 Dec  7 20:57 debug
  8 -rw-r--r--    1 root     root         7287 Dec  7 12:02 dmesg
  4 drwxr-s---    2 mail     adm          4096 Dec  7 11:08 exim/
 16 -rw-r--r--    1 root     root       530664 Dec  7 20:37 faillog
124 -rw-r--r--    1 root     root       121772 Dec  7 11:42 installer.log
8 -rw-r--r-- 1 root root 7066 Dec 7 11:42 installer.timings
 92 -rw-r--r--    1 root     root        66927 Dec  7 20:57 kdm.log
 16 -rw-r--r--    1 root     root        15232 Dec  7 20:57 kern.log
  4 drwxr-xr-x    2 root     root         4096 Dec  7 14:54 ksymoops/
 24 -rw-rw-r--    1 root     utmp      6456412 Dec  7 20:59 lastlog

...

I tried to fix it with 'fsck' on the '/var' partition, but this program told me everything is ok. Has anyone already had this problem ? Is it a bug or a wrong installation from my part ?

TIA,

Prakash



Reply to: