Screen – Watching 2 log files at once

I needed to tail two log files in one terminal so on the server I was using:

yum install screen  [or apt-get install screen]
screen
Ctrl-A  c        [create new session]
Ctrl-A Shift-s [spilt the screen]
Ctrl-A TAB     [move to the other frame]
Ctrl-A ”         [choose a screen session for this frame]

Run “tail -f filename1” in one frame then Ctrl-A TAB to the other and “tail -f filename2”
I’ll hopefully follow this up with running a time consuming command, suspending the screen session and reactivating later.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>