标签:linux test 标准 错误输出 nbsp -- 清空 错误 文件
1.cat linux.txt > test.txt 标准输出---->指定的文件中,清空原有数据
2.cat linux.txt >> test.txt 标准输出---->指定的文件中,追加
3.cat b.txt 2 > test.txt 错误输出---->指定的文件中,清空原有数据
4.cat b.txt 2 >> test.txt 错误输出---->指定的文件中,追加
5. cat b.txt 2>&1 test.txt 标准输出+错误输出--->到指定文件,追加
标签:linux test 标准 错误输出 nbsp -- 清空 错误 文件
原文地址:https://www.cnblogs.com/hapyygril/p/11763881.html