[CentOS] Size of /var/log/lastlog

Joshua Baker-LePain jlb17 at duke.edu
Sun Nov 6 21:59:24 UTC 2005


On Sun, 6 Nov 2005 at 9:48pm, Morten wrote

> [root at machine log]# cd /var/log/
> [root at machine log]# ls -la|grep last
> -r--------   1 root  root  1254130450140 Nov  6 21:44 lastlog
> [root at machine log]# du -hs lastlog
> 52K     lastlog
>
> What's up with the output of ls? This is x86_64.

nfsnobody has a UID of -1 (or something like that), casuing lastlog (which 
incorporates UIDs) to appear that enormous.  Note that it's a sparse file, 
so it actually takes up very little space on disk.  Run 'du' on it to see 
how much actual disk space it occupies.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University



More information about the CentOS mailing list