亚洲国产aⅴ,久久99精品九九九久久婷婷,日韩在线第三页,a在线视频免费观看,久久精品不卡毛片,国产精品无套,亚洲性图一区二区

linux批量清除tomcat日志 -電腦資料

電腦資料 時間:2019-01-01 我要投稿
【www.parislogo.com - 電腦資料】

   

1,直接刪除文件

<code class="hljs lasso">find /tomcat/logs/ -name '*.log.*' | xargs rm -f</code>

2,將文件內(nèi)容清零

<code class="hljs lasso"><code class="hljs lasso">find /tomcat/logs/ -name 'catalina.out' | xargs truncate -s 0</code></code>

    當(dāng)然要是清除一個文件可以直接echo輸出,

linux批量清除tomcat日志

,

電腦資料

linux批量清除tomcat日志》(http://www.parislogo.com)。

<code class="hljs lasso"><code class="hljs lasso"><code class="hljs bash">echo "" > catalina.out</code></code></code>

    但是這個命令批量處理就不行了,需要用truncate執(zhí)行,將文件字節(jié)數(shù)直接設(shè)置成0。

最新文章