Skip to content

Instantly share code, notes, and snippets.

@alazyer
Last active August 29, 2015 13:57
Show Gist options
  • Save alazyer/9458909 to your computer and use it in GitHub Desktop.
Save alazyer/9458909 to your computer and use it in GitHub Desktop.
Following the this [simple tmux tutorial](http://www.sitepoint.com/tmux-a-simple-start/)
# 1. install tmux1.8 in ubuntu
```sh
~$ sudo add-apt-repository ppa:pi-rho/dev
~$ sudo apt-get update
~$ sudo apt-get install tmux
```
# 2. tmux basic usage
## fire up a terminal with "CTRL ALT t"
```sh
~$ tmux
~$ tmux -V # check version info.
```
## to split the window in "left:right", just type:
```sh
~$ CTRL B %
```
## to split the window in "left:right", just type:
```sh
~$ CTRL B "
```
## to change the current working pane, just type:
```sh
~$ CTRL B <directory arrow> # up, down, left, right
```
## to toggle the current working pane full-screen:
```sh
~$ CTRL B z
```
## to create a new tmux window, just type:
```sh
~$ CTRL B c
```
## to toggle with the windows created by tmux, just type:
```sh
~$ CTRL B <window_number> # 0, 1, 2, ...., 9
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment