Sample Header Ad - 728x90

monitor files (à la tail -f) in an entire directory (even new ones)

73 votes
8 answers
39921 views
I normally watch many logs in a directory doing tail -f directory/*. The problem is that a new log is created after that, it will not show in the screen (because * was expanded already). Is there a way to monitor every file in a directory, even those that are created after the process has started?
Asked by santiagozky (833 rep)
May 31, 2012, 10:48 AM
Last activity: Jul 16, 2025, 11:52 PM