Linux Clean Logs: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
cd /var/log | 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; | ||
rm btmp-* | |||
rm cron-* | |||
rm dmesg.old | |||
rm haproxy.log-* | |||
rm maillog-* | |||
rm messages-* | |||
rm secure-* | |||
rm spooler-* | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 16:59, 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;