Skip to content

Latest commit

 

History

History
93 lines (61 loc) · 2.38 KB

Tmux commands.md

File metadata and controls

93 lines (61 loc) · 2.38 KB

Tmux commands

Create a session

tmux new -s <session-name>

Rename a session

tmux rename-session -t <old-session-name> <new-session-name>

List all sessions

tmux ls

Delete a session

tmux kill-session -t <session-name>

Attach(Enter) a session

tmux a -t <session-name>

small window

Is there any way to redraw tmux window when switching smaller monitor to bigger one?

Detach any other clients from the sessions when you attach:

tmux attach -d

This could be helpful when your tmux gives you a small window.

Inside tmux

Press Ctrl + b and then do one of the followings.

Detach(Leave) a session

d

Choose which client you want to detach from the session

Is there any way to redraw tmux window when switching smaller monitor to bigger one?

Shift + d

This could be helpful when your tmux gives you a small window.

Leave and detach a session

:kill-session

Scroll the screen(page up, page down)

[ and then Page Up or Page Down

Note that in Mac, Page Up and Page Down are fn + and fn + respectively.

In Windows, using Alt + and Alt + .

To leave scroll mode, press q.

To search(find) through history, press Ctrl + s. And then use n to go next, use N to go previous.

Window

kill window

&

swap window

How do I reorder tmux windows?

:swap-window -t <target-window-id>

:swap-window -s <source-window-id> -t <target-window-id>

Panes

split panes horizontally: "

split panes vertically: %

kill pane: x

Useful link

tmux Cheat Sheet

tmux cheatsheet

tmux shortcuts & cheatsheet

Tmux 快捷键 & 速查表