Linux Clean Logs: Difference between revisions
Jump to navigation
Jump to search
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 btmp-* | |||
rm cron-* | |||
rm dmesg.old | |||
rm haproxy.log-* | |||
rm maillog-* | |||
rm messages-* | |||
rm secure-* | |||
rm spooler-* | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 16:39, 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-*