💾 Archived View for darknesscode.xyz › notes › tmux-commands.gmi captured on 2024-05-10 at 10:57:51. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-06-11)
-=-=-=-=-=-=-
Here are the most usefull commands when running tmux
Crate a new session
tmux new -A -s [session-name]
The same command can be use to attach to a session that it was created before, if session don't exist it will create one
CTRL + b -> c
Horizontally
CTRL + b -> |
Vertically
CTRL + b -> _
Some tricks
Ctrl+B Alt+1 | Even horizontal splits Ctrl+B Alt+2 | Even vertical splits Ctrl+B Alt+3 | Horizontal span for the main pane, vertical splits for lesser panes Ctrl+B Alt+3 | Vertical span for the main pane, horizontal splits for lesser panes Ctrl+B Alt+5 | Tiled layout
CTRL + b -> ,
Then type the name for the new window
Using prefix inside tmux
CTRL + b -> $
From the command pront inside tmux
CTRL + b -> :
Then
rename-session [-t current-name] [new-name]
From the terminal
tmux rename-session [-t current-name] [new-name]
CTRL + b -> d
That will detached the from the session, the you can attached to the session by name
----------
----------
© DarknessCode