#cat multiple_terminals.screen
bindkey -k k5 focus up # Previous region bindkey -k k6 focus down # Next region bindkey -k kP copy # Scrollback on (up) bindkey -k kN copy # Scrollback on (down) bindkey "^[" quit # ESC to quit defscrollback 10000 split split split screen -t Terminal-0 tail -f /var/log/syslog focus down screen -t Terminal-1 tail -f /var/log/messages focus down screen -t Terminal-2 tail -f /var/log/auth.log focus down screen -t Terminal-3 tail -f /var/log/error focus top #screen -S screen_tail -c multiple_terminals.screen
Some key bindings
Ctrl+a \
(quit) Kill all windows and terminate screenCtrl+a tab
(focus) Switch the input focus to the next regionCtrl+a n
(next) Switch to the next windowCtrl+a p
(prev) witch to the previous windowCtrl+a w
(windows) Show a list of windowCtrl+a [
(copy) Enter copy/scrollback modeCtrl+a ]
(paste) Write the contents of the paste buffer to the stdin queue of the current windowCtrl+a ?
(help) Show key bindingsMore information
# man screen
No comments:
Post a Comment