Archive

Posts Tagged ‘tmux’

Tmux Usage

September 8, 2020 Leave a comment

[root@m ~]#  tmux show-options -g

Change options in run time

[root@m ~]# tmux set-option status-bg blue

[root@m ~]# tmux set-option status-fg white

[root@m ~]# tmux set-option pane-active-border-fg blue

In Tmux Session

Add Panel:

Ctrl + b then ” (add panel horizontal)

Ctrl + b then % (add panel vertical)

Remove Panel:

type exit or press ctrl + d to close panel

Move through panels:

Ctrl +b then ⬆ ⬇ ⬅ ➡

Change Panel Size:

Ctrl + b then press :

in the status bar (bottom of screen)  type

resize-pane -L (can be L,R,U,D) 2 (unit for resize, can be any number)

or

Ctrl + b then Alt + ⬆ ⬇ ⬅ ➡

Detach – Attach Session:

Ctrl + b then press :

type detach

[root@m ~]# tmux attach