【Linux 工具】tmux

安装

sudo apt-get install tmux

创建

tmux new -t name

上下分屏

tmux split

切换屏幕

control + B 然后按小键盘上或者下,实现上下屏幕的切换

暂时退出

control + B 然后按下 Z

查看 tmux 列表

tmux ls

重新进入

tmux a -t name

完全退出

exit

鼠标滚动屏幕

滚动模式:control + B 然后按下 [ 之后就可以用键盘上下键或者鼠标进行滚动
退出:esc

reference: https://qastack.cn/superuser/209437/how-do-i-scroll-in-tmux

自动获取鼠标操作

切换到主目录:cd
打开tmux配置文件:vim ~/.tmux.conf
添加鼠标获取操作:set -g mouse on

解决 tmux 在 conda 环境中无法使用的问题

在base环境中执行以下命令即
conda install -c conda-forge tmux

posted @ 2022-06-28 10:16  林東雨  阅读(80)  评论(0编辑  收藏  举报