首页 > 技术文章 > linux 重定向输出

zhangyy3 2019-08-05 17:20 原文

cat file 2>&1 > newFile

file 为源输出

newFile 为重定向后的输出 

cat file.txt 2>&1 > mylie.log

 nohup ./command.sh > output 2>&1 &

推荐阅读