LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 603|回复: 1

ls "$file" 2>/dev/null

[复制链接]
发表于 2004-2-17 20:34:39 | 显示全部楼层 |阅读模式
ls "$file" 2>/dev/null

in the above , what is 2 mean?
or what the above doing.


2>/dev/null redirects error messages to /dev/null. (2 = standard error).


http://www.experts-exchange.com/ ... nix/Q_11978478.html
 楼主| 发表于 2004-2-17 20:37:40 | 显示全部楼层
这样的文件描述符有12个,通常就用到3个:即:
0---标准输入
1--标准输出
2--标准错误

http://bbs.chinaunix.net/forum/4/20040116/245081.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表