手机
当前位置:查字典教程网 >操作系统 >unix linux >Linux下清除系统日志的方法
Linux下清除系统日志的方法
摘要:#!/bin/shcat/dev/null>/var/log/syslogcat/dev/null>/var/adm/sylogcat/de...

#!/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

【Linux下清除系统日志的方法】相关文章:

linux之cut命令的用法

linux系统启动自动激活网卡的解决方法

修改Linux主机名的方法

linux系统单网卡绑定双IP的具体操作方法

Linux环境下使用JFS文件系统

linux 新手教程之创建锁文件的方法

如何实现Linux操作系统的自动登录

linux 死机日志分析

linux下删除带-号的文件

Xen VPS下添加swap交换分区的方法

精品推荐
分类导航