linux执行命令后日志打印输出到文件
这里写自定义目录标题使用tee命令可以把该指令执行后所有打印日志输出到文件中:使用tee命令可以把该指令执行后所有打印日志输出到文件中:统一格式:需要执行的命令| tee 要输出的文件名比如:执行.sh文件bash run.sh | teeexport1.log执行ifconfigifconfig | teeexport2.log...
·
更多推荐
这里写自定义目录标题使用tee命令可以把该指令执行后所有打印日志输出到文件中:使用tee命令可以把该指令执行后所有打印日志输出到文件中:统一格式:需要执行的命令| tee 要输出的文件名比如:执行.sh文件bash run.sh | teeexport1.log执行ifconfigifconfig | teeexport2.log...
更多推荐
所有评论(0)