linux管道错误输出

错误输出需要使用以下命令,不然会直接输出到屏幕

ls not_exist_dir > /tmp/output 2>&1
将错误输出到文件里
posted @ 2022-04-13 09:05  lms21  阅读(99)  评论(0)    收藏  举报