2025年10月

tmux终端操作

命令快捷键解释
tmux new -s Test创建新窗口
tmux ls列出终端
tmux attach -t Test连接终端

tmux终端内操作

命令快捷键解释
tmux new-windowCtrl+b c创建新终端
tmux rename-window NameCtrl+b ,终端重命名
tmux select-window -t 0Ctrl+b 数字切换终端
tmux split-window -hCtrl+b %终端垂直分割
tmux split-windowCtrl+b "终端水平分割
tmux select-pane -[UDLR]Ctrl+b [上下左右]切换窗口
tmux detachCtrl+b d分离终端
Ctrl+b s列出所有会话
Ctrl+b w从列表中选择窗口
Ctrl+b x结束终端

su -

vi /etc/apt/sources.list
# 默认注释了源码仓库,如有需要可自行取消注释
deb http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie-updates main contrib non-free non-free-firmware

# backports 软件源,请按需启用
# deb http://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian trixie-backports main contrib non-free non-free-firmware

apt update
apt upgrade
apt install vim
update-alternatives --config editor   #默认编辑器是nano我喜欢vim选择/usr/bin/vim.basic
apt install locales
dpkg-reconfigure locales    //修改默认语言
apt install sudo

visudo 
exit