1,screen -L 相当操作
exit
more 当前目录/screenlog.0
2,script. /zxy.log
相关操作
exit
3,tee-- read from standard input and write to standard output and files
这个命令可以读取终端输入输出到终端或者文件中,有时候可以用来记录make等命令可能产生的输出到终端的大量内容输出到文件中去。这样可以方便记录这些命令的日志。
> make 2>&1 | tee make.log
当然,我们也可以直接重定向到一个文件中
> make > make.log
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-759646/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-759646/