Once i empty a log file by using " > aaa.log" , the size of that file should turn to 0 immediately.
But strange thing happened today. One of the filesystems was full today and i found there had a very huge log file in it.
So i use " > aaa.log" to empty it.
After that, the command seemed to take effect because the used blocks dropped down and the used percent of the whole disk returned to normal.
But when I tried to take a look at that file, i was astonished that the size of that file didin't change and I can still cat that file's content while the filesystem was almost empty.
Who can explain this problem to me? thanks!
But strange thing happened today. One of the filesystems was full today and i found there had a very huge log file in it.
So i use " > aaa.log" to empty it.
After that, the command seemed to take effect because the used blocks dropped down and the used percent of the whole disk returned to normal.
But when I tried to take a look at that file, i was astonished that the size of that file didin't change and I can still cat that file's content while the filesystem was almost empty.
Who can explain this problem to me? thanks!