Linux Clean Logs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux =Operations= <syntaxhighlight lang='bash'> cd /var/log rm btmp-* </syntaxhighlight>")
 
 
(5 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-*
 
</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;