Linux Clean Logs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 7: | Line 7: | ||
<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-* | ||
cat /dev/null > secure; | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 16:40, 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-*
cat /dev/null > secure;