Editing Tmux

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
+
[[wikipedia:tmux|tmux]]<ref>http://man7.org/linux/man-pages/man1/tmux.1.html</ref> 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
 
  
== Installation ==
+
Basic command usage:
* macOS: <code>[[brew install tmux]]</code>
+
* <code>tmux ls</code><ref>https://gist.github.com/MohamedAlaa/2961058</ref>
* Linux: <code>[[apt install tmux]]</code>
+
<pre>
 +
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]
 +
</pre>
 +
 
 +
* Config file: <code>$HOME/.tmux.conf</code>
 +
 
 +
 
 +
* <code>tmux -f your_tmux_config_file.conf</code>
 +
* <code>tmux new -s my_session_name</code>
  
== Examples ==
 
* <code>[[tmux ls]]</code><ref>https://gist.github.com/MohamedAlaa/2961058</ref>
 
* Config file: <code>$[[HOME]]/[[.tmux.conf]]</code>
 
* <code>[[tmux -f]] your_tmux_config_file.conf</code>
 
* New session: <code>[[tmux new -s]] my_session_name</code>
 
**  [[CTRL+b]], C
 
 
* <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 -t 0]]</code> or <code>tmux attach-session -t 0</code>
+
* <code>tmux attach -t 0</code> or <code>tmux attach-session -t 0</code>
* <code>[[tmux kill-server]]</code>
+
 
* [[Detach]]: <code>[[CTRL+b]] d</code>
+
 
* <code>[[tmux new]]</code> or <code>[[tmux new-session]]</code>
+
* <code>tmux kill-server</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 ==
# 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 (<code>[[reptyr]]</code>): 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> (<code>[[tmux kill-server]]</code>)
+
# 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>)
  
 
== Related terms ==
 
== Related terms ==
* <code>[[ncurses]]</code>
+
* [[ncurses]]
* <code>[[tlog]]</code>
 
* <code>[[tmux-cssh]]</code>
 
* [[i3 (window manager)]]
 
* [[OpenBSD]] https://man.openbsd.org/tmux.1
 
* [[Byobu]]
 
  
 
== See also ==
 
== See also ==
 +
* {{OpenSSH}}
 
* {{tmux}}
 
* {{tmux}}
* {{terminal}}
+
* [[reptyr]]<ref>https://linux.die.net/man/1/reptyr</ref> Reparent a running program to a new terminal
* <code>[[kitty]]</code> and <code>[[alacritty]]</code> GPU terminal emulators
+
* kitty and alacritty GPU terminal emulators
 
* [[iTerm2]] (macOS). Install iTerm2 <code>brew cask install iterm2</code> and use <code>CMD+D</code> to [[split screen]] vertically.
 
* [[iTerm2]] (macOS). Install iTerm2 <code>brew cask install iterm2</code> and use <code>CMD+D</code> to [[split screen]] vertically.
 
* <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:Tmux]]
+
[[Category:Software]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: