On Fri, Dec 30, 2005 at 07:42:03PM +0000, Dinesh Joshi wrote:
On Friday 30 December 2005 13:04, agencies_ad1@sancharnet.in wrote:
Hello, du of lastlog reports 120K size ls of lastlog reports 38M [root@c-106 root]# du -sh /var/log/lastlog 120K /var/log/lastlog [root@c-106 root]# ls -lah /var/log/lastlog -rw-r--r-- 1 root root 38M Dec 30 13:30 /var/log/lastlog
Why du and ls reporting differnt size of the same file?
Experts, please clarify!
du operates on blocks. du -b gives the right size in bytes.