mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
8169ae1edc
As it's in the tmux tldr, we don't need to mention tmux when talking about a tmux session. Cleaned up some wording as well. Oftentimes, users will change their prefix. This shouldn't assume that your prefix is Ctrl-b. Detach session also needs to be a lowercase "d" rather than uppercase. The tip for killing your current session does not work as described. If you simply use "prefix x", that allows you to kill your pane, not your session. Killing your session isn't bound to any key command (by default). So the best way to kill your current session (from within tmux) is not outlined.
618 B
618 B
tmux
Terminal multiplexer. It allows multiple sessions with windows, panes, and more. More information: https://github.com/tmux/tmux.
- Start a new session:
tmux
- Start a new named session:
tmux new-session -s {{name}}
- List existing sessions:
tmux ls
- Attach to the most recently used session:
tmux attach-session
- Attach to a named session:
tmux attach-session -t {{name}}
- Detach from the current session (with prefix Ctrl-B):
Ctrl-B d
- Kill a session by name:
tmux kill-session -t {{name}}
- Kill the current session (with prefix Ctrl-B):
Ctrl-B :kill-session<Enter>