我基本上需要查看命令的输出,这些命令的日志可能会运行1000多个行,同时将其发送到文件中。请帮忙。
使用tee命令:
tee
mycommand | tee filename.txt
将mycommand保存标准输出到filename.txt并同时在终端上显示它。
mycommand
filename.txt
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句