我从事IT行业多年,用过很多终端,但一直没有找到合适的终端。我看起来像下面的图片,我可以在窗口右侧的每个服务器上冲浪。
发布于 2018-03-27 00:12:44
使用screen管理它(在unix上):

编辑您的screen.rc配置:
nano /etc/screenrc将以下行复制到文件的末尾:
autodetach on
startup_message off
hardstatus alwayslastline
shelltitle 'bash'
hardstatus string '%{gk}[%{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= w}%?%+Lw%?%? %{g}][%{d}%l%{g}][ %{= w}%Y/%m/%d %0C:%s%a%{g} ]%{W}'创建一个名为ssh的屏幕:
screen -dmS ssh在您的屏幕上添加一个名为sshPane1的选项卡,其中包含第一个ssh connexion:
screen -S ssh -X screen -t sshTab1 ssh user@monip在屏幕上添加第二个名为sshPane2的选项卡,其中包含第二个ssh连接:
screen -S ssh -X screen -t sshTab2 ssh user@monip2创建一个脚本来自动执行此操作。
然后,您可以使用以下命令查看屏幕:
screen -ls

通过指定屏幕编号,您可以使用进入内部:
screen -r 9312或使用以下命令打开上次创建的:
screen -r现在您有了自己的屏幕:

您可以使用以下命令退出: CTRL+A CTRL+D
您可以使用CTRL+A 1更改制表符以转到第一个,使用CTRL+A 2更改制表符以转到第二个,...
https://stackoverflow.com/questions/49495577
复制相似问题