实用命令
[chunli@CentOS ~]$ screen -S test #创建一个叫test的会话
[chunli@CentOS ~]$ [Ctrl+a d] #回到screen之前的窗口
[chunli@CentOS ~]$ screen -r test #回到test这个session
[chunli@CentOS ~]$ screen -ls #列出当前所有的session
实际操作
列出当前所有的session
[chunli@CentOS tools]$ screen -ls
There are screens on:
25477.tes(Detached)
27098.tes(Detached)
26393.tes(Detached)
3 Sockets in /var/run/screen/S-chunli.
[chunli@CentOS tools]$ screen -r 25477
[chunli@CentOS ~]$ exit
[chunli@CentOS tools]$ screen -ls
There are screens on:
27098.tes(Detached)
26393.tes(Detached)
2 Sockets in /var/run/screen/S-chunli.
[chunli@CentOS tools]$
少了一个