Re: /var/log/lastlog, du and ls Do Not Agree

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

 



On Tue, 08 Jun 2004 07:43:42 -0400, Bob Chiodini wrote:

> I was testing UDF on CDRW yesterday and noticed that du and ls do not
> agree on the size of /var/log/lastlog.  This is an ext3 file system.
> 
> # du -s /var/log/lastlog
> 52      /var/log/lastlog
> 
> # ls -l /var/log/lastlog
> -r--------  1 root root 19136220 Jun  8 06:32 /var/log/lastlog

-snip-

Sort of a Linux related FAQ. A hint to get you on the right track:
 
  cp --sparse=never /var/log/lastlog /var/tmp
  du -h /var/tmp/lastlog



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux