Linux: Difference between revisions

Line 73: Line 73:
Getting Started:
Getting Started:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# Make a new window
# Make a new session
tmux
tmux
# Make a new named window
# Make a new named session
tmux new -s my_window
tmux new -s my_session
# Detach from a window
# Rename a session
ctrl + b, d
# Keybinding: Ctrl + b, $
tmux rename-session [-t current-name] [new-name]
# Detach from a session
# Keybinding: Ctrl + b, d
tmux detach
# List windows
# List windows
tmux ls
tmux ls
# Attach to a window
# Attach to a session
tmux attach -t my_window
tmux attach -t my_session
</syntaxhighlight>
</syntaxhighlight>