Screen是一款由GNU计划开发的用于命令行终端切换的自由软件。用户可以通过该软件同时连接多个本地或远程的命令行会话,并在其间自由切换。
Use: screen [-opts] [cmd [args]]
or: screen -r [host.tty]Options: -4 Use IPv4. -6 Use IPv6. -a Force all capabilities into each window‘s termcap. -A 将所有的视窗都调整为目前终端机的大小。 -c 用指定的filename文件替代screen的配置文件".screenrc"。 -d (-r) 将指定的screen作业离线。 -dmS name Start as daemon: Screen session in detached mode. -D (-r) 与-d命令实现一样的功能,区别是执行成功,会踢掉原来在screen里的用户并让它logout。 -e xy Change command characters. -f Flow control on, -fn = off, -fa = auto. -h lines Set the size of the scrollback history buffer. -i Interrupt output sooner when flow control is on. -l Login mode on (update /var/run/utmp), -ln = off. -list or -ls 显示目前所有的screen作业。 -L Turn on output logging. -m ignore $STY variable, do create a new screen session. -O Choose optimal output rather than exact vt100 emulation. -p window Preselect the named window if it exists. -q Quiet startup. Exits with non-zero return code if unsuccessful. -r <name> 恢复离线的screen作业。 -R 先试图恢复离线的作业。若找不到离线的作业,即建立新的screen作业。 -s shell 指定建立新视窗时,所要执行的shell。 -S <name> 指定screen作业的名称。 -t title Set title. (window‘s name). -T term Use term as $TERM for windows, rather than "screen". -U Tell screen to use UTF-8 encoding. -v Print "Screen version 4.00.03 (FAU) 23-Oct-06". -wipe Do nothing, just clean up SockDir. -x 恢复之前离线的screen作业。 -X Execute <cmd> as a screen command in the specified session.
精彩评论