Tmux List of Usage guide resources
- The Tmux of terminal environment, a good Chinese tmux introduction
- Combined with ITerm2 and Tmux, the ITerm2 comes with a Tmux integration function introduction, artifact
- Tmux: Without the mouse's efficient development, an Ebook + video, speak a lot of use tips. You can see this video for specific information.
Installation
- Mac, Ubuntu, CentOS: Install with Homebrew,yum or Apt-get
- CentOS manual installation, manual installation script
Work flow
- Login server ()
ssh xxx
, create Tmux session () tmux
, if you want to specify the name you can use ( tmux -S name
).
- Use and create a new window based on the syntax of Tmux, and then close the tab directly when you're done with it
- The next use can ssh up first, and then execute
tmux a
, if you want to specify the name tmux a -t name
. If you are using ITERM2, you can use Integrated mode, plus -CC
parameters, such astmux -CC a
- Using frequent words, you can create a profile in ITerm2, such as the following:
Use the shortcut key to open the profile, automatically ssh to the server, send the command to tmux -CC a
open the Tmux session.
When you are finished using the window that opens Tmux, press ESC to exit, or use the shortcut key to ctrl + cmd + shift + d
exit.
Problems
- Open multiple Tmux mode Windows. Now the Iterm official version can only support open one, can upgrade to the latest development version of the resolution,
。
- CentOS cannot use Iterm mode. The Tmux version of CentOS installed with Yum is 1.6 (available for
tmux -V
Viewing) and Iterm mode requires support for the tmux1.8 version above. You need to kill the Tmux session that is currently open, and then use the command to yun erase tmux
delete the old version. Refer to the manual installation method of the installation section.
Tmux User Guide