Tuesday, September 16th, 2008 11:48 PM
Find all files with ‘.log’ extention and make an bzip archive
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2
No Comments »
Thursday, February 21st, 2008 11:10 PM
View in real time what is added to a file. -f stands for Follow
tail -f /var/log/messages
No Comments »
Friday, December 28th, 2007 12:16 AM
The last command shows a history of logins…
last
No Comments »
Sunday, September 2nd, 2007 11:40 PM
<p class=”intro”>This command will let you watch a log file for changes as soon as they happen.</p>
<pre><code class=”cli”>
tail -f log/development.log
</code></pre>
[tags]log,listen,watch,tail,command,linux,cli[/tags]
No Comments »