Tmux terminal multiplexer
Tmux terminal multiplexer
tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.
This release runs on OpenBSD, FreeBSD, NetBSD, Linux, macOS and Solaris.
Dependencies
- tmux depends on libevent 2.x, available from this page.
- It also depends on ncurses, available from this page. To build tmux, a C compiler (for example gcc or clang), make, pkg-config and a suitable yacc (yacc or bison) are needed.
Installation
1 | |
or
1 | |
Edit .tmux.conf
1 | |
Usage
1 | |
Actions
1 | |
copy text
If you prefer using your mouse to highlight and copy text just like a normal terminal, you can turn on mouse mode.
- Open or create your tmux configuration file: vim ~/.tmux.conf
- Add the following line:
set -g mouse on
- Save the file, and reload your tmux environment inside the terminal:
tmux source ~/.tmux.conf
- Enter Copy Mode: Press
Ctrl + b, then release and press[. (The screen will freeze, and a line counter will appear in the top right). - Simply click and drag your mouse over the text.
- You can still paste it using
Ctrl + bfollowed by]
Tmux terminal multiplexer
https://waipangsze.github.io/2023/05/01/Tmux_terminal_multiplexer/