Tmux in CentOS creates a perfect terminal management tool

Source: Internet
Author: User

Tmux in CentOS creates a perfect terminal management tool

Tmux is an excellent terminal reuse software, similar to GNU Screen, but comes from OpenBSD and adopts BSD authorization. The most intuitive advantage of using it is that after logging on to the remote host through a terminal and running tmux, you can enable multiple consoles without having to "waste" Additional terminals to connect to this remote host. Of course, its functions are far more than that.

I have been using the Tumx terminal tool for this period of time and feel very useful. I would like to share it with my O & M colleagues:

1. installation:

// Check whether the system has been installed. If not, use yum to install it.

[Root @ master home] # rpm-qa tmux

Tmux-1.6-3.el6.x86_64

[Root @ master home] # yum install-y tmux

2. After installation, let's try it out. Simply enter tmux on the terminal to open a new tmux terminal:

[Root @ master home] # tmux

[Root @ master home] # tmux ls # check how many tmux terminals are opened

0: 1 windows (created Fri Nov 14 10:07:04 2014) [176x46] (attached)

1: 1 windows (created Fri Nov 14 10:07:04 2014) [176x46] (attached)

2: 1 windows (created Fri Nov 14 10:07:04 2014) [176x46] (attached)

3. The following describes how to use some of the tmux shortcut keys:

Tmux # enable tmux

Tmux ls # display the list of existing tmux (Ctrl-B s)

Tmux attach-session-t number # select tmux

Ctrl + B c create a new window

Ctrl + B n switch to the next window

Ctrl + B p switch to the previous window

Ctrl + B l the last window is different from the previous one. Who knows?

Ctrl + B w select the session opened in the current window through the up/down key

Press Ctrl + B to jump directly to the window where the number you press is located.

Ctrl + B & Exit the current window

Ctrl + B d can be connected after the session is disconnected temporarily :)

Ctrl + B "split a window

Ctrl + B % split a window

Ctrl + B o switch in Small Window

Ctrl + B (direction key)

Ctrl + B! Close all small windows

Ctrl + B x close the small window at the current cursor

Ctrl + B t clock

Ctrl + B pageup/pagedow

If you think Ctrl + B is too far away and it is difficult to press Ctrl + B, You can reset the key combination:

--------------- Shortcut for binding and unbinding under the command line ------------

[Root @ master home] # tmux unbind C-B # unbind the ctrl + B shortcut key

[Root @ master home] # tmux set-g prefix C-x # shortcut key for binding ctrl + x

4. There are other functions to be discovered by yourself. The figure below shows:

Tmux 1.8 released, a Linux terminal multiplexing

Tmux: terminal multiplexing

Simple tmux tutorial

Install and use Tmux in CentOS

Tmux details: click here
Tmux: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.