Linux命令行与shell脚本(11)--输入/输出重定向

理解输入和输出 重定向错误消息 ls -al badfile 2> test4 重定向错误和数据 ls -al test test2 test3 badtest 2> test6 1> test7 #错误输入到test6,正常数据显示到test7 ls -al test test2 &> test8 #将标准错误和标准输入都重定向到test8 在脚本中重定向输出 将文本输出到标准错误中 echo
相关文章
相关标签/搜索