如果有权限可以使用包管理工具、比如apt进行安装,如果没有则可以使用conda进行安装

使用apt安装命令sudo apt install tmux

使用conda安装需要先添加镜像源,然后安装

conda config --add channels conda-forge
conda install tmux

常见的Tmux命令

操作 描述
tmux 新建一个tmux会话
tmux attach 连接到一个已有的tmux会话
tmux detach 从当前tmux会话中断开
tmux switch 切换到其他tmux窗口
tmux split-window 在当前窗口中分割出一个新窗格
tmux source-file 加载一个tmux配置文件
tmux ls 查看已经打开的会话

常见的Tmux 快捷指令

操作 描述
ctrl+b c 创建一个新窗口
ctrl+b n 切换到下一个窗口
ctrl+b p 切换到上一个窗口
ctrl+b % 在当前窗口中创建一个新的水平窗格
ctrl+b " 在当前窗口中创建一个新的垂直窗格
ctrl+b o 在当前窗格中切换到下一个窗格
ctrl+b ; 在最后一个使用的窗格和当前窗格之间切换
ctrl+b x 关闭当前窗格
ctrl+b d 断开当前会话
ctrl+b s 列出所有会话
ctrl+b w 列出当前会话中的所有窗口
ctrl+b ? 显示所有可用的快捷键
ctrl+b : 进入命令行模式

参考资料

https://harttle.land/2015/11/06/tmux-startup.html#header-14