From e11f4826bfe7294221b71c030f3e95a39889ddac Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Mon, 17 Feb 2020 23:59:47 +0700 Subject: [PATCH] use tmux --- use-tmux.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 use-tmux.md diff --git a/use-tmux.md b/use-tmux.md new file mode 100644 index 0000000..0900657 --- /dev/null +++ b/use-tmux.md @@ -0,0 +1,17 @@ +# 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. + +Show list of tmux sessions + +```sh +tmux ls +``` + +Attach to tmux session 0: + +```sh +tmux attach -t 0 +```