LWN.net Logo

My sysadmin toolbox: second helping (Linux.com)

Linux.com looks at netcat, tcpdump, Ethereal, nmap, and other useful system administration tools. "Most admins are already familiar with using tail -f logfile to watch system, application, and error logs when they're troubleshooting. However, the tail utility only follows one file at a time. If you need to watch two or more logfiles at the same time, which is fairly common, the MultiTail utility by Folkert van Heusden is an excellent tool to have handy."
(Log in to post comments)

My sysadmin toolbox: second helping (Linux.com)

Posted Dec 6, 2005 17:15 UTC (Tue) by eli (guest, #11265) [Link]

"tail -f" will take multiple file arguments. The output includes a header to tell you which file the output is from when tail switches between files.

My sysadmin toolbox: second helping (Linux.com)

Posted Dec 6, 2005 21:22 UTC (Tue) by nix (subscriber, #2304) [Link]

Ooo! I never noticed that :) Thank you.

(What's even more embarrassing is that this feature has been around for as long as GNU coreutils has existed, yet I've somehow never noticed it, even though the documentation for --follow describes it clearly in the first paragraph. Ah well, you live and learn...)

My sysadmin toolbox: second helping (Linux.com)

Posted Dec 7, 2005 2:48 UTC (Wed) by knobunc (subscriber, #4678) [Link]

Even better is -F to follow a file across log-rolls.

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds