Split Terminal Screen And Work Like A Professional

81 篇文章 0 订阅

Tmux Terminal Multiplexer

Tmux is a terminal multiplexer, it enables a number of terminals (or windows) to be accessed and controlled from a single terminal. Tmux is intended to be a simple, modern, BSD-licensed alternative to programs such as GNU screen. Tmux may be detached from a screen and continue running in the background, then later reattached.
When Tmux is started it creates a new session with a single window and displays it on screen. A status line at the bottom of the screen shows information on the current session and is used to enter interactive commands.
A session is a single collection of pseudo terminals under the management of Tmux. Each session has one or more windows linked to it. A window occupies the entire screen and may be split into rectangular panes, each of which is a separate pseudo terminal. Any number of TMUX instances may connect to the same session, and any number of windows may be present in the same session. Once all sessions are killed, Tmux exits. Also checkout Tmux manual.
tmux

You can use keybind + key combination to perform actions for Tmux, follow these keys:
KeyBind + Combination KeyAction Description
Ctrl+b%Split the current window vertically into two panes
Ctrl+b:split-windowHorizontally split window or current pane
Ctrl+boSwitch to the next pane
Ctrl+bcOpen new window
Ctrl+blMove to previous window
Ctrl+bnMove to next window
Ctrl+bpMove to previous window
Ctrl+bdDetach current client
Ctrl+bxKill the current pane
Ctrl+b&Kill the current window
Ctrl+b,Rename the current window
Ctrl+bqDisplay pane numbers
Ctrl+b?List all keybindings
Ctrl+b{Move the current pane to previous
Ctrl+b}Move the current pane to next
Ctrl+b:break-paneDetach pane into its own window
Ctrl+bwList all windows
Ctrl+b0-9To select window


Pane Resizing:
tmux resize
Tmux also allows you to resize panes as you like, follow these commands:
KeyBind + Combination KeyAction Description
Ctrl+b:resize-paneResize current pane down by default
Ctrl+b:resize-pane -UUpward Resize current pane
Ctrl+b:resize-pane -RResize current pane to right
Ctrl+b:resize-pane -LResize current pane to left
Ctrl+b:resize-pane 40Resize current pane down by 40 cells
Ctrl+b:resize-pane -L 40Resize current pane left by 40 cells
Ctrl+b:resize-pane -R 40Resize current pane right by 40 cells
Ctrl+b:resize-pane -U 40Resize current pane upward by 40 cells
Ctrl+b:resize-pane -t -L 40Resize pane with id of 2 left by 40 cells
Ctrl+b:resize-pane -t 2 40Resize pane with id of 2 down by 40 cells

Install Tmux Terminal Multiplexer in Ubuntu/Linux Mint/other Ubuntu derivatives with following command:
After installation open it by typing tmux in Terminal.


Screen Terminal Multiplexer

Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Each virtual terminal provides the functions of the DEC VT100 terminal and, in addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g., insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows the user to move text regions between windows. When screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill the current window, view a list of the active windows, turn output logging on and off, copy text between windows, view the scrollback history, switch between windows, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the users terminal.
GNU Screen can be thought of as a text version of graphical window managers, or as a way of putting virtual terminals into any login session. It is a wrapper that allows multiple text programs to run at the same time, and provides features that allow the user to use the programs within a single interface productively. This enables the following features: persistence, multiple windows, and session sharing. Checkout screen manual.
screen

You can control screen multiplexer with following keys:
KeyBind + Combination KeyAction Description
Ctrl+a| (Vertical Bar)Split pane vertically
Ctrl+aShift+sSplit pane horizontally
Ctrl+aShift+qDetach current pane
Ctrl+aTabTo switch between panes
Ctrl+acTo open pane session or New window
Ctrl+aspaceMove to next terminal
Ctrl+abackspaceMove to previous terminal
Ctrl+a"To choose between terminal windows
Ctrl+a0-9To navigate between terminal windows
Ctrl+a:removeRemove current pane
Ctrl+aShift+xRemove current pane
Ctrl+a:onlyRemove all panes except one
Ctrl+a\To close all panes and exit screen
Ctrl+a:resize 40Resize pane by 40 cells
Ctrl+apMove to next process pane
Ctrl+anMove to previous process pane

Install Screen Termial Multiplexer in Ubuntu/Linux Mint/other Ubuntu derivatives with following command:
After installation open it by typing screen in Terminal.

That's it


http://www.noobslab.com/2014/08/split-ubuntugnome-terminal-screen-and.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值