国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Linux下清除系統日志的方法

2020-06-13 12:34:24
字體:
來源:轉載
供稿:網友
把下面的文件根據需要做一下修改,然后保存為clear_logs.sh,然后執行即可。
 
 

復制代碼
代碼如下:

#!/bin/sh 
cat /dev/null > /var/log/syslog 
cat /dev/null > /var/adm/sylog 
cat /dev/null > /var/log/wtmp 
cat /dev/null > /var/log/maillog 
cat /dev/null > /var/log/messages 
cat /dev/null > /var/log/openwebmail.log 
cat /dev/null > /var/log/maillog 
cat /dev/null > /var/log/secure 
cat /dev/null > /var/log/httpd/error_log 
cat /dev/null > /var/log/httpd/ssl_error_log 
cat /dev/null > /var/log/httpd/ssl_request_log 
cat /dev/null > /var/log/httpd/ssl_access_log 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 美姑县| 瑞丽市| 元朗区| 微博| 宣城市| 辽阳市| 外汇| 营口市| 常德市| 萨嘎县| 观塘区| 莫力| 绥江县| 富源县| 株洲市| 武穴市| 石城县| 晋中市| 巴中市| 保定市| 重庆市| 中江县| 林甸县| 郯城县| 龙川县| 隆安县| 巩留县| 邢台市| 阿图什市| 广昌县| 和平县| 晋州市| 邛崃市| 城口县| 墨竹工卡县| 遂溪县| 延寿县| 松滋市| 本溪| 莫力| 无棣县|