[attach]5302[/attach]
screen 是一个非常有用的命令,提供从单个 SSH 会话中使用多个 shell 窗口(会话)的能力。当会话被分离或网络中断时,screen 会话中启动的进程仍将运行,你可以随时重新连接到 screen 会话。如果你想运行一个持久的进程或者从多个位置连接到 shell 会话,这也很方便。 -- rosehosting.com
本文导航
-如何安装 screen …… 13%
-如何启动一个 screen 会话 …… 28%
-从 screen 会话中分离 …… 43%
-重新连接到 screen 会话 …… 48%
-中止 screen 会话 …… 70%
编译自: https://www.rosehosting.com/blog/basic-screen-command-usage-and-examples/
作者: rosehosting.com
译者: geekpi
screen -v
Screen version 4.00.03 (FAU)
yum -y install screen
apt-get -y install screen
screen
screen -S name
screen -r
screen -ls
There are screens on:
7880.session (Detached)
7934.session2 (Detached)
7907.session1 (Detached)
3 Sockets in /var/run/screen/S-root.
screen -r 7934
screen -r -S session2
man screen
NAME
screen - screen manager with VT100/ANSI terminal emulation
SYNOPSIS
screen [ -options ] [ cmd [ args ] ]
screen -r [[pid.]tty[.host]]
screen -r sessionowner/[[pid.]tty[.host]]
欢迎光临 51学通信论坛2017新版 (http://bbs.51xuetongxin.com/) | Powered by Discuz! X3 |