Can someone makes sense of what shown below.
I truncated a file with "> list.trc", and it works
because /var capacity dropped dramatically.
But the size of list.trc comes back when shown with "ls".
It does not make sense since the used space is
"35006" per df so we can not have a file with size 117175216
as shown by ls.
How can I make things consistent? Thank you.
# df -k .
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s4 246167 35006 186545 16% /var
# ls -ls
total 104
64 -rw-r--r-- 1 oracle dba 117175216 Apr 26 14:32 list.trc
# > list.trc
# ls -ls
total 40
0 -rw-r--r-- 1 oracle dba 0 Apr 26 14:32 list.trc
# ls -ls
total 40
0 -rw-r--r-- 1 oracle dba 0 Apr 26 14:32 list.trc
# ls -ls
total 88
48 -rw-r--r-- 1 oracle dba 117175237 Apr 26 14:33 list.trc
# df -k .
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s4 246167 34998 186553 16% /var
--
Michael Wang
http://www.mindspring.com/~mwang