Trang Huynh
Member
How do I delete old log files in UNIX?
Answer
Is there a proper way to clear log files on Unix? You can simply
truncate a log file using > filename syntax
. For example if log file name is /var/log/foo, try > /var/log/foo as root user.
Answer
Is there a proper way to clear log files on Unix? You can simply
truncate a log file using > filename syntax
. For example if log file name is /var/log/foo, try > /var/log/foo as root user.