Useful Snippets


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at

RSS Latest posts from my personal blog

Most viewed posts

Subscribe to RSS feed

Display output of multiple log files with tail

Stanislav KhromovStanislav Khromov

To show the output from all log files in a directory, run:

tail -f *.log

Output example:

==> log1 <== - - [16/Nov/2014:03:31:06 +0000] "GET /robots.txt HTTP/1.1" 200 107 - - [16/Nov/2014:03:31:07 +0000] "GET / HTTP/1.1" 200 7777 - - [16/Nov/2014:03:36:05 +0000] "GET /robots.txt HTTP/1.1" 200 107

==> log2 <== - - [16/Nov/2014:05:39:36 +0000] "GET / HTTP/1.1" 200 34569 - - [16/Nov/2014:05:40:44 +0000] "POST /wp-admin/ HTTP/1.0" 200 961 - - [16/Nov/2014:05:40:57 +0000] "POST /wp-admin/ HTTP/1.0" 200 50505

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
Twitter Profile
Visit my other blog

Comments 0
There are currently no comments.