diff options
author | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-02 18:24:41 -0400 |
---|---|---|
committer | kaernyk <kaernyk@users.noreply.github.com> | 2014-09-02 18:24:41 -0400 |
commit | d4286056d3e48dc3a44bc51adb1a1b6da80c990c (patch) | |
tree | e49c0dd73a9e2744f757862cb9126f61b5bab1f4 | |
parent | 0b3f3e01e245ab2f73226fe4ba09d567ca76aa98 (diff) |
Create LearnTmux.txt
Quick write-up of using tmux
-rw-r--r-- | LearnTmux.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/LearnTmux.txt b/LearnTmux.txt new file mode 100644 index 00000000..a86e36f4 --- /dev/null +++ b/LearnTmux.txt @@ -0,0 +1,61 @@ +--- +category: tool +tool: tmux +contributors: + - ["kaernyk", "http://github.com/kaernyk"] +filename: LearnTmux.txt +--- + + tmux is a terminal multiplexer: it enables a number of terminals to be +created, accessed, and controlled from a single screen. tmux may be detached +from a screen and continue running in the background, then later reattached. + + This will be a quick walkthough detailing the basic method of controlling tmux +for users to get acclimated quickly. Once you feel comfortable manipulating +tmux to suit your needs, I strongly suggest you read the man pages. + + +### Session Management +```bash + tmux new Create new session + -s "Session" Create named session + -n "Window" Create named Window + -c "/dir" Start in target directory + + ex: tmux new -c "~/Documents" -s "" -n "" + ----------------------------------------------------------------------------- + C^b d Detach current session + C^b D Select session to detach + ----------------------------------------------------------------------------- + tmux attach Attach last/available session + -t "#" Attach target session + -d Detach the session from other instances + ----------------------------------------------------------------------------- + tmux ls List open sessions + C^b s Select new session for attached client interactively + ----------------------------------------------------------------------------- + kill-session Kill current session + -t "#" Kill target session + -a Kill all sessions + -a -t "#" Kill all sessions but the target + ----------------------------------------------------------------------------- +``` + +### Window Management +```bash + ----------------------------------------------------------------------------- + C^b c Create another window + C^b " Split Horizontally + C^b % Split Vertically + ----------------------------------------------------------------------------- + C^b q Briefly display pane indexes + C^b w Choose current window interactively + ----------------------------------------------------------------------------- + + Detaching Windows + + ----------------------------------------------------------------------------- + + Killing Windows + +``` |