方法一: 2>&1 (# ls /usr/share/doc > out.txt 2>&1 ) 方法二: &> (# ls /usr/share/doc &> out.txt )
原文地址:https://www.cnblogs.com/sea-stream/p/12003105.html
时间: 2024-10-01 05:57:03
方法一: 2>&1 (# ls /usr/share/doc > out.txt 2>&1 ) 方法二: &> (# ls /usr/share/doc &> out.txt )
原文地址:https://www.cnblogs.com/sea-stream/p/12003105.html