tmux简单使用

Table of Contents

安装tmux

# Ubuntu 或 Debian 
sudo apt-get install tmux 
# CentOS 或 Fedora 
sudo yum install tmux 
# Mac 
brew install tmux

简单使用

在 SSH 会话中,启动一个新的 tmux 会话

tmux

输入命令正常使用即可

脱离当前会话

ctrl+b 在按d

重新连接tmux会话

tmux attach-session

查看多个tmux会话

tmux ls

连接特定会话

tmux attach-session -t <session_name_or_id>

详细使用参考相关链接:

https://www.ruanyifeng.com/blog/2019/10/tmux.html

https://docs.hpc.sjtu.edu.cn/login/tmux.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注