Issue
In Linux, using the command tailf
, how can I tail several log files that are inside a folder and in the subfolders?
Solution
To log all the files inside a folder, you can go to the folder and write
tail -f *.log
To add the subfolders to the tailf command, use
tail -f **/*.log
Of course, the regular expression can be improved to match only specific file names.
Answered By - nakib Answer Checked By - Mildred Charles (WPSolving Admin)