红联Linux门户
Linux帮助

linux trick truncate log file

发布时间:2008-02-18 00:52:19来源:红联作者:Inesaleof
How to truncate a log file using Linux

Have you ever wanted to truncate a log file that was being written to by a running process without stopping the process to do so?

If so then all you need is the following to clear out the active log file:

cat /dev/null > some_log_file.log
文章评论

共有 0 条评论