Skip to content

Instantly share code, notes, and snippets.

@ayuLiao
Last active July 6, 2018 08:37
Show Gist options
  • Save ayuLiao/b154134b6643cf0973200b49edd9d3be to your computer and use it in GitHub Desktop.
Save ayuLiao/b154134b6643cf0973200b49edd9d3be to your computer and use it in GitHub Desktop.
tmux会开启一个新进程,在新进程中操作linux
#列出所有会话
$ tmux ls
#新建一个会话
$ tmux new -s session-name
# 新建会话但并不指定名字 (不推荐这样做)
$ tmux new
# 接入一个已存在
$ tmux a -t session-name
# 快捷键断开会话
Ctrl-b d
# 要关闭会话的话,可以使用如下的命令,该命令和接入会话时所使用的命令很像:
$ tmux kill-session -t xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment