Skip to content

Instantly share code, notes, and snippets.

@hnhnarek
Created December 2, 2017 20:13
Show Gist options
  • Save hnhnarek/1a14b9e05c821e2c2e31c514a2e2f861 to your computer and use it in GitHub Desktop.
Save hnhnarek/1a14b9e05c821e2c2e31c514a2e2f861 to your computer and use it in GitHub Desktop.
tmux basic commands

tmux basics

start new:

tmux

start new with session name:

tmux new -s sess_name

attach:

tmux a  #  (or at, or attach)

attach to named:

tmux a -t sess_name

list sessions:

tmux ls

kill session:

tmux kill-session -t sess_name

In tmux, hit the prefix ctrl+b and then:

Sessions

:new<CR>  new session
s  list sessions
$  name session

Windows (tabs)

c  create window
w  list windows
n  next window
p  previous window
f  find window
,  name window
&  kill window

Panes (splits)

%  vertical split
"  horizontal split

o  swap panes
q  show pane numbers
x  kill pane

Misc

d  detach
?  list shortcuts
:  prompt
t  big clock 

Happy Coding!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment