您的位置:首页 > 其它

关于STDIN,STDOUT,STDERR的图解分析

2011-12-27 20:50 423 查看
一直对linux中的标准输入输出没有理解的很清楚,发现网页中的一个图例说得很清楚,就转了,做个记录

转:http://scmbob.org/conclusion_of_io_redirection.html

Furthermore:

Following picture gives a very clear defination of what is stdin stdout and stderr:

# In Linux everything is a file.

# Your hardware is also a file:

* 0 - Input - Keyboard (stdin)

* 1 - Output - Screen (stdout)

* 2 - Error - Screen (stderr)



# For standard input:






[b]# For standard output:

[/b]

[b]


[/b]

[b][b]# For standard error:

[/b][/b]

[b][b]


[/b][/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: