Can't make a file empty
Hi All,
I have a log file of size 160 MB and it is continuosly increasing. To reduce it want to make it empty at certain interval. To do this I use following command
echo "" > abc.log
as an alternative I've also used :
> abc.log
After using this command, I saw that file becomes 0 KB but suddenly after 15-20 seconds I found that file has again become 160 MB in size.
Please tell me the reason for this problem, and also tell me that how can I make my log file empty.
Thanks,
Ritesh Pandey
|