Difference between revisions of "Tmux"
Jump to navigation
Jump to search
↑ https://gist.github.com/MohamedAlaa/2961058
↑ https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa
↑ https://superuser.com/a/510310
Tags: Mobile web edit, Mobile edit |
|||
(13 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<code>[[wikipedia:tmux|tmux]]</code> is a [[terminal multiplexer]] first released in 2007. | <code>[[wikipedia:tmux|tmux]]</code> is a [[terminal multiplexer]] first released in 2007. | ||
* http://man7.org/linux/man-pages/man1/tmux.1.html | * http://man7.org/linux/man-pages/man1/tmux.1.html | ||
+ | |||
+ | == Installation == | ||
+ | * macOS: <code>[[brew install tmux]]</code> | ||
+ | * Linux: <code>[[apt install tmux]]</code> | ||
== Examples == | == Examples == | ||
Line 11: | Line 15: | ||
* <code>tmux a</code> or <code>tmux attach</code> Attach to last used session.<ref>https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa</ref> | * <code>tmux a</code> or <code>tmux attach</code> Attach to last used session.<ref>https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa</ref> | ||
* <code>[[tmux attach -t]] my_session_name</code> or <code>tmux attach-session -t my_session_name</code> | * <code>[[tmux attach -t]] my_session_name</code> or <code>tmux attach-session -t my_session_name</code> | ||
− | * <code>[[tmux attach | + | * <code>[[tmux attach -t 0]]</code> or <code>tmux attach-session -t 0</code> |
* <code>[[tmux kill-server]]</code> | * <code>[[tmux kill-server]]</code> | ||
* [[Detach]]: <code>[[CTRL+b]] d</code> | * [[Detach]]: <code>[[CTRL+b]] d</code> | ||
− | * tmux new or tmux new-session | + | * <code>[[tmux new]]</code> or <code>[[tmux new-session]]</code> |
+ | * [[tmux list-keys]] | ||
+ | * [[Split screen]]: <code>[[Ctrl b]] + %</code> | ||
+ | * [[Move between panes]]: <code>Ctrl+b Arrow Key (Left, Right, Up, Down)</code> | ||
== Activities == | == Activities == | ||
Line 23: | Line 30: | ||
== Related terms == | == Related terms == | ||
* <code>[[ncurses]]</code> | * <code>[[ncurses]]</code> | ||
− | * [[ | + | * <code>[[tlog]]</code> |
+ | * <code>[[tmux-cssh]]</code> | ||
* [[i3 (window manager)]] | * [[i3 (window manager)]] | ||
+ | * [[OpenBSD]] https://man.openbsd.org/tmux.1 | ||
+ | * [[Byobu]] | ||
== See also == | == See also == | ||
Line 33: | Line 43: | ||
* <code>[[last]]</code>: <code>root pts/1 tmux(41272).%0 Thu Dec 11 12:02 gone - no logout</code> | * <code>[[last]]</code>: <code>root pts/1 tmux(41272).%0 Thu Dec 11 12:02 gone - no logout</code> | ||
− | [[Category: | + | [[Category:Tmux]] |
Latest revision as of 08:53, 28 February 2024
tmux
is a terminal multiplexer first released in 2007.
Installation[edit]
- macOS:
brew install tmux
- Linux:
apt install tmux
Examples[edit]
tmux ls
[1]- Config file:
$HOME/.tmux.conf
tmux -f your_tmux_config_file.conf
- New session:
tmux new -s my_session_name
- CTRL+b, C
tmux a
ortmux attach
Attach to last used session.[2]tmux attach -t my_session_name
ortmux attach-session -t my_session_name
tmux attach -t 0
ortmux attach-session -t 0
tmux kill-server
- Detach:
CTRL+b d
tmux new
ortmux new-session
- tmux list-keys
- Split screen:
Ctrl b + %
- Move between panes:
Ctrl+b Arrow Key (Left, Right, Up, Down)
Activities[edit]
- Open a tmux session, disconnect your computer and reconnect again to your previous session using
tmux attach
ortmux a
- Transfer current command to a detachable session (
reptyr
): https://superuser.com/questions/623432/transfer-current-command-to-a-detachable-session-tmux-screen - Add
set -g mouse on
to your$HOME/.tmux.conf
file to scroll using your mouse.[3] (tmux kill-server
)
Related terms[edit]
See also[edit]
tmux
[ ls | a | new ]
,.tmux.conf, tlog, cockpit
- Terminal, iTerm2, PuTTY, Windows terminal, Terminal (macOS),
screen
,tmate, upterm
,Byobu
,iTerm2
,xterm
,reptyr
,disown
,coolterm
, minicom,tmux
, Windows Terminal,set -g mouse on
,kill-server
,tmux
, Kitty, Alacritty,stty sane, tlog
, Tera Term, Split screen, Guake terminal, Terminal sharing, Termux kitty
andalacritty
GPU terminal emulators- iTerm2 (macOS). Install iTerm2
brew cask install iterm2
and useCMD+D
to split screen vertically. last
:root pts/1 tmux(41272).%0 Thu Dec 11 12:02 gone - no logout
Advertising: