mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-26 06:17:01 +00:00
add screen and tmux
This commit is contained in:
parent
b8350d6d62
commit
c704f484a2
17
README.md
17
README.md
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user