Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Tmux Getting Start     - CentOS 7.0 local address and configure yum source address priority (Linux)

- Remote database using RMAN recovery test (RAC return to single-instance database) (Database)

- MySQL Tutorial: Philosophical Reflections on the unauthenticated user (Database)

- QEMU image file used: qcow2 and raw (Linux)

- Protobuf compiled and used on the Ubuntu 14.04 (Programming)

- Single-node Hadoop installation notes distributed pseudo & (Server)

- Xshell key authentication mechanism using a remote login Linux (Linux)

- Executable file format Explanation under Linux (Linux)

- MySQL innodb_table_stats table does not exist solution (Database)

- Ubuntu 14.04 virtual machine switching desktop environments (Linux)

- Android Launcher3 Application List Modify a transparent background (Linux)

- LVM management parameters commonly used commands explained in detail (Linux)

- CentOS7 compile and install Tengine + PHP + MariaDB notes (Server)

- Ubuntu is expected to allow you to install the latest Nvidia Linux drivers easier (Linux)

- Linux Command - ps: a snapshot of the current process (Linux)

- How LUKS encrypted disk / partition to perform remote incremental backup (Linux)

- Redis application of Sina Weibo (Database)

- How to use scientific data Docker quickly configure the development environment (Server)

- 12 Linux Process Management Commands (Linux)

- Virtual Judge structures under Ubuntu 14.04 (Server)

 
         
  Tmux Getting Start
     
  Add Date : 2016-11-09      
         
         
         
  Introduction

tmux linux is a kind of window management program, unlike iTerm2, it provides a ready Session storage and recovery of function (Session concept will be introduced later), detach Session (Session to keep running in the background) and then re-attach Session

Common scene in the company Terimal opened in multiple tabs and files home from work suddenly had inspiration want to continue to write, use ssh remote link to the company's computer, and then find the file tabs to be reopened, if Tmux, work detach the current Session, home ssh remote connection, after attach Session, the scene recovery can continue programming a pleasant ...

installation

# Installation for Mac OS X lost package management Homebrew
$ Ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install artifact Tmux
$ Brew install tmux
basis

# Start Tmux
$ Tmux
# Close Tmux
$ Ctrl + d
Or exit #
$ Exit
tmux There are three basic concepts: Session (Session), Window (Window) and panel (Pane) when you enter tmux, tmux actually do is to first create a session (Session), and then create a window in this session, you can continue to create more than one window (window), each window initially contains only one panel, continue after split-screen, there will be a plurality of panels (Pane) in which you can see the terminal actually belong to a panel of tmux

Still further, Session can contain multiple Window, each can contain multiple Pane Window

tu

Basic Operations

All shortcuts performed on:

Press control + b two key combination, then release the control + b (I want to tell Tmux Tmux shortcuts), then trigger various behaviors shortcut keys.

For example:? C-b is pressed during the execution of two key combination control + b, then release the control + b, then press the key, it will display a list of all shortcuts '?'.

C-b? Lists all the shortcuts, press q or Esc to return
C-b d detach the current session, it can temporarily return to Shell interface, enter before tmux attach to re-enter the session
Used in multiple sessions open simultaneously; C-b s choice and switch sessions
hot key

Window Operation

C-b c create a new window
C-b & Close the current window
C-b w List all window selection
C-b p to switch to the previous window
C-b n to switch to the next window
C-b Number window switch windows using the window number (such as window number 1, then C-b 1)
C-b, rename the current window for easy identification of each window
Pane operation

C-b% Horizontally Terminal
C-b "Vertically Terminal
C-b is the free choice of the direction keys to each of the panel
C-b x to close the current pane
C-b q display panel No.
Session operations

# Create a new session
$ Tmux new-s
# Create a new Session at the current session, the session still exists and to ensure that before
# C-b: and then enter the following command
new-s
# Enter the named test session
$ Tmux attach -t test
C-b s lists all the sessions
C-b d detach the current session (that it runs in the background)
Advanced

Beautify Tmux

Use gpakosz of Tmux configuration landscaping.

advantage

Use C-a as a prefix easier to use, while preserving the C-b triggering prefix
powerline status bar beautification (vim are used should be familiar)
Laptop battery status display
Installation

$ Cd
$ Rm -rf .tmux
$ Git clone https://github.com/gpakosz/.tmux.git
$ Ln -s .tmux / .tmux.conf
$ Cp .tmux / .tmux.conf.local.
     
         
         
         
  More:      
 
- CentOS / Debian configuration Gitlab 7.1x to build self Git repository (Linux)
- To execute the cp command prompt type skip folder under CentOS (Linux)
- Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)
- Samba public folder permissions (Server)
- The text formatting tools awk Linux system (Linux)
- After installing Ubuntu 15.04, to do a few things (Linux)
- Du and df show disk space usage inconsistent Causes and Treatment (Linux)
- How do I upgrade from Ubuntu 15.04 to Ubuntu 15.10 (Linux)
- Confrontation dragged Library - Web front-end encryption slow (Linux)
- Number JavaScript type system (Programming)
- Solve ORA-01012: not logged on (Database)
- Linux command ls (Linux)
- SQL Beginner Guide (Database)
- Mass data storage application of MongoDB database (Database)
- Analysis of MySQL High Availability (Database)
- System Safety: Windows and Linux platforms (Linux)
- Install NetBeans IDE 8.0 on Ubuntu, Linux Mint, Elementary OS, and Debian (Linux)
- shell script: a key optimization CentOS system (Linux)
- Python 3 for instructions encoded string conversion (Programming)
- Talking about modern programming language syntax and standard library tightly bound phenomenon (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.