Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to view multiple logs at once?

I am currently running zookeeper processes and multiple internal processes and they all print out to their own log files as text. I am pretty green to linux but I was wondering if viewing multiple log file in a single screen without switching between emacs windows or vim windows is an issue for other. What is the best way to view say 3, four or more log files at once? Would it involve the CAT or | commands?

like image 524
smuggledPancakes Avatar asked Oct 29 '25 12:10

smuggledPancakes


1 Answers

If you are viewing live logs you can use tail with multiple files, or just tail an entire directory using the wildcard operator.

If you are digging though logs you can use Terminator, it is in the Debian repos, to open multiple terminal sessions in one window.

If you are feeling more adventurous your can use tmux to split your terminal window, the great thing about tmux is that is works in textmode, so you can do it over ssh. Here is a pretty decent tmux split pane tutorial http://lukaszwrobel.pl/blog/tmux-tutorial-split-terminal-windows-easily

like image 165
Leon Avatar answered Oct 31 '25 03:10

Leon