til/use-tmux.md

18 lines
286 B
Markdown
Raw Normal View History

2020-02-17 16:59:47 +00:00
# Use tmux
Imagine you want to run a long task in terminal, but you don't want to keep terminal open.
Run the task in tmux then detach session, after some time attach that session.
2020-02-17 17:02:52 +00:00
Show list of tmux sessions:
2020-02-17 16:59:47 +00:00
```sh
tmux ls
```
Attach to tmux session 0:
```sh
tmux attach -t 0
```