Wednesday, January 20, 2016

Split the terminal into more than one “view” with tmux

  • เคยมั้ยตอนเรารีโมทเซิร์พเวร์ อยากได้หน้า terminal หลายๆ หน้าให้แสดงในหน้าเดียวแบบนี้

tmux is a terminal multiplexerWhat is a terminal multiplexer? It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more. See the manual.

การใช้งานแบบคร่าวๆ ติดตั้งและรันโปรแกรม sudo apt-get install tmux && tmux
  • Split screen vertically: Ctrlb and Shift5
  • Split screen horizontally: Ctrlb and Shift"
  • Toggle between panes: Ctrlb and o
  • Close current pane: Ctrlb and x
You can achieve more complex layouts by splitting panes. You can also have multiple windows with panes and switch between them.
  • Create windows: Ctrlb and c
  • Switch to next window: Ctrlb and n
  • Switch to previous window: Ctrlb and p
  • Destroy current window: Ctrlb and x
Ref
  • http://tmux.github.io/
  • http://unix.stackexchange.com/questions/7453/how-to-split-the-terminal-into-more-than-one-view

No comments:

Post a Comment

Popular Posts