Tmux is a wonderful multiplexer and very useful tool for a penetration tester and red teamers. I use it a lots. Here i have noted most used tmux command for future reference! Custom .tmux.conf

unbind C-b
unbind '"'
unbind %
set-option -g prefix C-a
bind-key C-a send-prefix
bind h split-window -h
bind v split-window -v

set -g default-terminal "screen-256color"
set -g message-style fg=white,bold,bg=red
set -g status-style fg=white,bg=red
set -g pane-border-style fg=red
set -g pane-active-border-style "bg=red fg=green"
set -g mouse on

Session

Here is some session management command

Start new session with a name

tmux new -s session_name

List Sessions

tmux ls

Attach to a session

#attach to last session
tmux a

#Attach to an specific session
tmux a -t session_name

kill a session

tmux kill-session -t session_name

Kill all sessions

tmux kill-session -a 

Detach from session

Ctrl+a d

#Command
:attach -d

Move to next session

Ctrl+a )

Move to Previous Session

Ctrl+a (

Windows

Here is some windows management command

Create Window

Ctrl+a c

Rename Window

Ctrl+a ,

Move to next window

Ctrl+a n

Move to window by number

Ctrol+a 0...9

Panes

Here is some panes management command

Split Pane Horizontally/Vertically

Ctrl+a h
Ctrl+a v

Switching Panes

Ctrl+a left/right/up/down

Resize Height/Width of current pane

Ctrl+a up
Ctrl+a down
Ctrl+a left
Ctrl+a right

Misc

Here is some Misc command

Enter Command Mode

Ctrl+a :