Linux Clean Logs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
cd /var/log; rm btmp-*; rm cron-*; rm dmesg.old; rm haproxy.log-*; rm maillog-*; rm messages-*; rm secure-*; rm spooler-* | cd /var/log; rm btmp-*; rm cron-*; rm dmesg.old; rm haproxy.log-*; rm maillog-*; rm messages-*; rm secure-*; rm spooler-*; rm wtmp-*; | ||
cat /dev/null > secure; | cat /dev/null > secure; | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 16:48, 3 November 2017
Internal
Operations
cd /var/log; rm btmp-*; rm cron-*; rm dmesg.old; rm haproxy.log-*; rm maillog-*; rm messages-*; rm secure-*; rm spooler-*; rm wtmp-*;
cat /dev/null > secure;