黑帽联盟
标题:
Shell中怎么将标准输出和错误输出同时重定向到同一位置
[打印本页]
作者:
定位
时间:
2024-8-10 21:23
标题:
Shell中怎么将标准输出和错误输出同时重定向到同一位置
方法一:2>&1 (如# ls /usr/share/doc > out.txt 2>&1 ) 。
方法二:&> (如# ls /usr/share/doc &> out.txt ) 。
欢迎光临 黑帽联盟 (https://bbs.cnblackhat.com/)
Powered by Discuz! X2.5