tmux 是一个终端复用工具,可以让用户在一个终端窗口中同时运行多个终端会话。它的名字来源于"终端多路复用器"(Terminal Multiplexer)的缩写。 使用 tmux 可以创建、管理和切换多个终端会话,这样你就可以在同一个终端窗口中同时运行多个命令行程序或会话,而无需打开多个终端窗口。这对于在远程服务器上工作或需要同时处理多个任务的情况非常有用。
对于需要离线在服务器上跑代码时,tmux是个很方便的工具。但一般的服务器使用用户没有root权限该如何安装tmux呢?
如果没有conda需要首先安装Anaconda
# Install conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
下来使用conda安装tmux或者htop工具
$ conda install -c conda-forge tmux
# also get a bonus htop
$ conda install -c conda-forge htop