Terminal Multiplexer (TMUX)

From mylearnings
Revision as of 12:32, 16 June 2025 by Pristal (talk | contribs) (Created page with "* Open a tmux session in shared mode. <pre> tmux -S /tmp/<name> </pre> * Connect to a shared session. <pre> tmux -S /tmp/<name> attach * Detach from current session <pre> <prefix> + d </pre> * View all the tmux sessions running. <pre> tmux ls </pre> * Attach to a session. <pre> tmux attach -t <name/number> </pre> * Rename a tmux session. <pre> tmux rename-session -t <session name/number> <new name> </pre> * Start a new tmux session with name <pre> tmux new -s <sess...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  • Open a tmux session in shared mode.
tmux -S /tmp/<name>
  • Connect to a shared session.
tmux -S /tmp/<name> attach

* Detach from current session
<pre>
<prefix> + d
  • View all the tmux sessions running.
tmux ls
  • Attach to a session.
tmux attach -t <name/number>
  • Rename a tmux session.
tmux rename-session -t <session name/number> <new name>
  • Start a new tmux session with name
tmux new -s <session name>
  • Delete a session
tmux kill-session -t <session name/number>
  • Rename a window in tmux.
<prefix> + ,
  • Switch Tmux Window,
Method 1:
    <prefix> + <window number>
Method 2:
    <prefix> + w
    Then, select using j/k
Method 3:
    Jump to Next,
        <prefix> + n
    Jump to Previous,
        <prefix> + p