Saturday, 25 April 2015

TMUX tips

tmux 
tmux new -s session_name
creates a new tmux session named session_name
tmux attach -t session_name
attaches to an existing tmux session named session_name
tmux switch -t session_name
switches to an existing session named session_name
tmux list-sessions
lists existing tmux sessions
tmux detach (prefix + d)
detach the currently attached session 
tmux list-sessions
tmux kill-session -t1
tmux -a sessionname (or just tmux -a to go to only one)
cntrl-b is the meta key

cntrl-b left key,right key,up key down key - moves you around
keywhat it does
ctrl-b, %split the screen in half from top to bottom
ctrl-b, "split the screen in half from left to right
ctrl-b, xkill the current pane
ctrl-b, switch to the pane in whichever direction you press
ctrl-b, ddetach from tmux, leaving everything running in the background 
  • Ctrl-b c Create new window
  • Ctrl-b d Detach current client
  • Ctrl-b l Move to previously selected window
  • Ctrl-b n Move to the next window
  • Ctrl-b p Move to the previous window
  • Ctrl-b & Kill the current window
  • Ctrl-b , Rename the current window
  • Ctrl-b % Split the current window into two panes
  • Ctrl-b q Show pane numbers (used to switch between panes)
  • Ctrl-b o Switch to the next pane
  • Ctrl-b ? List all keybindings

No comments:

Post a Comment

bash best practices

Bash best practices A few hints on bash best practice: * use #!/usr/bin/env bash .. this is more portable but you cant rely on a spe...