add screen and tmux

This commit is contained in:
onceupon 2017-09-28 13:34:16 +08:00 committed by GitHub
parent b8350d6d62
commit c704f484a2

View File

@ -1496,29 +1496,46 @@ q -d "," "select c3,c4,c5 from /path/to/file.txt where c3='foo' and c5='boo'"
``` ```
##### Sreen and tmux ##### Sreen and tmux
create session and attach
```bash
screen
or
tmux
```
create detached session foo create detached session foo
```bash ```bash
screen -S foo -d -m screen -S foo -d -m
or
tmux new -s foo -d tmux new -s foo -d
``` ```
list sessions list sessions
```bash ```bash
screen -ls screen -ls
or
tmux ls tmux ls
``` ```
attach attach
```bash ```bash
screen -r screen -r
or
tmux attach tmux attach
``` ```
attach to session foo attach to session foo
```bash ```bash
or
screen -r foo screen -r foo
tmux attach -t foo tmux attach -t foo
``` ```
kill session foo
```bash
screen -r foo -X quit
or
tmux kill-session -t foo
```
## System ## System
[[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)] [[back to top](#handy-bash-oneliner-commands-for-tsv-file-editing)]