使用screen/byobu 管理你的远程会话

使用telnet或SSH远程登录linux时,如果连接非正常中断,重新连接时,系统将开一个新的session,无法恢复原来的session。screen命令可以解决这个问题。

Screen工具是一个终端多路转接器,在本质上,这意味着你能够使用一个单一的终端窗口运行多终端的应用。

基本命令:

开一个会话,并命名为temp:screen -S temp

临时退出这个会话:ctrl-a d

再次进入名为temp的会话:screen -r temp

检查正在运行的会话:screen -ls



Byobu:

using EPEL to install byobu

F2    Opens a new shell window (try opening a few)
F3    Goes to the previous window
F4    Goes to the next window

F5    Status notifications refresh

F6    Disconnect (detach) from byobu session and logout

F7    Go into the scrollback/search mode

F8    Change the name of the current window
F9    Open up the Byobu Configuration Men

你可能感兴趣的:(screen,远程会话)