screen使用方法

screen使用bash

若是须要打开日志记录使用-L参数日志

若是须要指定sesstion名称使用-S参数io

若是须要记录日志到文件使用-t参数(指定名称)test

同时须要在/etc/screenrc文件中须要指定:file

logfile /var/log/screen/screen_%t.log文件

%t即-t参数指定的名称参数

screen -dmSL test -t test bash

相关文章
相关标签/搜索