Basic workflow.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 11 Jul 2018 22:39:42 +0300
changeset 2257 9d446a4c5e2a
parent 2256 0ac7d9a3d658
child 2258 6e4989c98825
Basic workflow.
tmux.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tmux.rst	Wed Jul 11 22:39:42 2018 +0300
@@ -0,0 +1,37 @@
+
+======
+ tmux
+======
+
+Basic workflow
+==============
+
+``tmux`` default prefix is ``Ctrl+B``. Start tmux by::
+
+  $ tmux
+  $ tmux new -s NAME
+
+Basic commands::
+
+* ``Ctrl+b c`` create a new window
+* ``Ctrl+b 0`` switch to window 0
+* ``Ctrl+b 1`` switch to window 1
+* ``Ctrl+b 2`` switch to window 2 / etc
+* ``Ctrl+b x`` kill current window
+* ``Ctrl+b ,`` rename pane
+* ``Ctrl+b d`` detach tmux
+* ``Ctrl+b "`` split a pane horizontally
+* ``Ctrl+b %`` split pane vertically
+* ``ctrl+b <arrow>`` move around panes
+* ``ctrl+b :`` resize pane
+
+List all tmux sessions::
+
+  $ tmux ls
+  $ tmux list-sessions
+
+To attack to specific session::
+
+  $ tmux a -t NAME
+
+