方法一: 2>&1 (# ls /usr/share/doc > out.txt 2>&1 ) 方法二: &> (# ls /usr/share/doc &> out.txt )
如何将标准输出和错误输出同时重定向到同一位置?
猜你喜欢
转载自www.cnblogs.com/sea-stream/p/12003105.html
今日推荐
周排行