tmux is terminal multiplexer. Similar to the screen that I use at office.
Here are few advantages/reasons that using tmux over screen.
- tmux is under activity development and with BSD license.
- tmux use less resource.
- Flexible control the pane.
- Scroll back history
It is not part of centos yum repository. To install it, we need to set up the EPEL.
The user configure tmux configure file is located at ~/.tmux.conf
Here is my binding and below cheat sheet is base on that.
|List tmux session||tmux lis|
|Attached the session||tmux a –t <session id>|
|Kill the current window||prefix + &|
|pane to window||prefix + !|
|next pane||prefix + o|
|next window||prefix + n|
|copy mode||prefix + <ESC>|
|copy to the vmux buffer||use mouse select the text or
copy mode –> prefix + v to select the text –> prefix + y to copy
|copy to vi||prefix + p|
|copy from putty to notepad||shift key and select as normally putty|
This is tricky one. I use putty to my linux box and I like the putty function that can just select the text and copy paste. However, because tumx buffer is independent outside the system buffer and tmux would also take the signal about the putty for the mouse resize. To achieve this goal, we have 2 ways to do it.
1. complete disable the signals from putty .
Terminal –> Features –> Disable xterm-style mouse reporting
By check this box, we can no longer use mouse to resize or pane or enter the copy mode, and copy tmux buffer.
2. Press shift key while copy paste
I decided to use the 2nd approach It will take some time to get used to it.
Another challenge is to copy the content of pane into notepad. At this point, I will just move the pane into its own window and use the shift key to do it.