tmux.rst
changeset 2257 9d446a4c5e2a
child 2258 6e4989c98825
equal deleted inserted replaced
2256:0ac7d9a3d658 2257:9d446a4c5e2a
       
     1 
       
     2 ======
       
     3  tmux
       
     4 ======
       
     5 
       
     6 Basic workflow
       
     7 ==============
       
     8 
       
     9 ``tmux`` default prefix is ``Ctrl+B``. Start tmux by::
       
    10 
       
    11   $ tmux
       
    12   $ tmux new -s NAME
       
    13 
       
    14 Basic commands::
       
    15 
       
    16 * ``Ctrl+b c`` create a new window
       
    17 * ``Ctrl+b 0`` switch to window 0
       
    18 * ``Ctrl+b 1`` switch to window 1
       
    19 * ``Ctrl+b 2`` switch to window 2 / etc
       
    20 * ``Ctrl+b x`` kill current window
       
    21 * ``Ctrl+b ,`` rename pane
       
    22 * ``Ctrl+b d`` detach tmux
       
    23 * ``Ctrl+b "`` split a pane horizontally
       
    24 * ``Ctrl+b %`` split pane vertically
       
    25 * ``ctrl+b <arrow>`` move around panes
       
    26 * ``ctrl+b :`` resize pane
       
    27 
       
    28 List all tmux sessions::
       
    29 
       
    30   $ tmux ls
       
    31   $ tmux list-sessions
       
    32 
       
    33 To attack to specific session::
       
    34 
       
    35   $ tmux a -t NAME
       
    36 
       
    37