Steps to install Tmux software on CentOS

  
                

Tmux is a terminal-use software that can open multiple terminals remotely and has more powerful functions than putty. How to install Tmux under CentOS? The following small series will introduce you to the method of installing Tmux in CentOS.

Tmux is a screen replacement for BSD. It is more advanced than Screen: it supports screen segmentation and has rich command line parameters, making it flexible and dynamic for various layouts and operations. It can be started with a single command (strong configuration), the terminal on the left, Vim on the right, and a gdb—&mdash on the left; in short, it is a flexible IDE, and you still have to configure it.

the following picture:

Installation:

Next, let's talk about how to install tmux.

Environment: CentOS

CentOS software installation tool is not apt-get Yes yum

Before installing tmux, you need to install some supported components:

yum Install libevent-devel ncurses-devel

The next step is to download the source package for installation. Here is a point: So far, the latest version of tmux is 1.8, but I have tested it in 1.8 when compiling There are minor problems, so it is recommended to choose a lower version, 1.6/1.7.

wget http://downloads.sourceforge.net/tmux/tmux-1.6.tar.gz

tar zxvf tmux-1.6.tar.gz

cd tmux- 1.6

. /configure

make

make install

This is OK!

Use:

C stands for ctrl key

tmux command and use

tmux #开启tmux

tmux ls #show existing Tmux list (Cb s)

tmux attach-session -t number#select tmux

Cb c Create a new window

Cb n Switch to the next window

Cb p Switch to the previous window

Cb l The last window is different from the previous window. Who knows who knows

cb w Use the up and down keys to select the current Open session in window

Cb number jumps directly to the window where the number you pressed

Cb & Exit current window

Cb d Temporary disconnect session after disconnection , you can also connect to the 哟 :)

Cb “ Split a window (horizontal)

Cb % Split a window (portrait)

Cb o in small Switch in window

Cb (direction key)

Cb ! Close all small windows

Cb x Close the small window at the current cursor

Cb t Clock

Cb pageup/pagedo

The above is the CentOS installation using Tmux The method is introduced. When installing, you need to pay special attention to the fact that you can choose to install with a lower version. The higher version may have some problems.

Copyright © Windows knowledge All Rights Reserved