Linux System Tmux Installation and Usage Guide

  

The Linux system tmux is an efficient programming tool that can greatly improve the efficiency of programming. Only those who are more familiar with Linux tmux know the power of tmux. This article will briefly introduce the Tmux installation and usage guide for Linux systems.

Introduction

tmux is a program for managing windows in linux. Unlike iTerm2, it provides a session for storing and restoring at any time (Session concept will be introduced later), detach Session ( Keep the Session running in the background) Then reattach the Session

Common scenes, open multiple tags and files in the company Termim, come home from work and suddenly have inspiration to continue writing, use ssh to remotely link the company computer, then Found that the tabs and files have to be reopened. If you use Tmux, you will be detached from the current session, and after going home to ssh remote connection, after attaching the session, the scene recovery can be pleasantly programmed again …

Installation< Br>

# Install the missing package management Homebrew under Mac OS X

$ ruby ​​-e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )”

# Install artifact Tmux

$ brew install tmux

Basic

# 启动Tmux

$ tmux

# Close Tmux

$ ctrl + d

# or quit

$ exit

tmux has three basic concepts: Session, Window, and Panel. When you type tmux, what tmux actually does is create a session first, then create a window in this session, you can continue to create multiple windows, each window initially contains only one panel, continue After splitting the screen, there will be multiple panels (Pane). The terminal you see in it actually belongs to a panel of tmux.

Further, Session can contain multiple windows, and each window can comprising a plurality Pane

Previous Next 12 total 2

Copyright © Windows knowledge All Rights Reserved