Difference between revisions of "Tmux"
Jump to navigation
Jump to search
↑ http://man7.org/linux/man-pages/man1/tmux.1.html
↑ https://gist.github.com/MohamedAlaa/2961058
↑ https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa
↑ https://superuser.com/a/510310
↑ https://linux.die.net/man/1/reptyr
Line 26: | Line 26: | ||
# Open a tmux session, disconnect your computer and reconnect again to your previous session using <code>tmux attach</code> or <code>tmux a</code> | # Open a tmux session, disconnect your computer and reconnect again to your previous session using <code>tmux attach</code> or <code>tmux a</code> | ||
# Transfer current command to a detachable session: https://superuser.com/questions/623432/transfer-current-command-to-a-detachable-session-tmux-screen | # Transfer current command to a detachable session: https://superuser.com/questions/623432/transfer-current-command-to-a-detachable-session-tmux-screen | ||
− | # Add <code>set -g mouse on</code> to your <code>$HOME/.tmux.conf</code> file to scroll using your mouse.<ref>https://superuser.com/a/510310</ref> | + | # Add <code>set -g mouse on</code> to your <code>$HOME/.tmux.conf</code> file to scroll using your mouse.<ref>https://superuser.com/a/510310</ref> (<code>tmux kill-server</code>) |
== See also == | == See also == |
Revision as of 08:33, 19 December 2019
tmux[1] is a terminal multiplexer first released in 2007.
Basic command usage:
tmux ls
[2]
Example shows two running sessions: 0 and my_named_session: tmux ls 0: 1 windows (created Sat Sep 15 09:38:43 2018) [158x35] my_named_session: 1 windows (created Sat Sep 15 10:13:11 2018) [78x35]
- Config file:
$HOME/.tmux.conf
tmux -f your_tmux_config_file.conf
tmux new -s my_session_name
tmux a
ortmux attach
Attach to last used session.[3]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
Activities
- 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: 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.[4] (tmux kill-server
)
See also
- SSH: OpenSSH
tmux
[ ls | a | new ]
,.tmux.conf, tlog, cockpit
- reptyr[5] Reparent a running program to a new terminal
- kitty and alacritty 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: