摘要:zhaolei:~ zhaolei$ zl > hello.txt-bash: zl: command not found由于zl命令不存在,所以会提示错误,我们希望将错误输入到hello.txt中,结果是生成了hello.txt文件,但是其内容为空.怎么办?可以运行下面的命令.zhaolei:~ zhaolei$ zl > hello.txt 2>&1#查看hello.txt内容zhaolei:~ zhaolei$ cat hello.txt-bash: zl: command not found也就是说把错误信息输入到了hello.txt文件中了.假设zl命令存在
阅读全文
posted @ 2012-05-15 23:02
浙公网安备 33010602011771号