关于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]
转: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]
相关文章推荐
- stdin,stdout,stderr分析
- 关于输入输出(stdin、stdout、stderr)
- 《C程序设计语言》------关于输入输出(stdin、stdout、stderr)
- linux 关于减号 - 代替stdin 和stdout 的用法
- linux中的 STDIN_FILENO,STDOUT_FILENO和STDERR_FILENO
- linux中stdout,stdin,stderr意义
- Unix/Linux下的stdout,stdin和stderr
- linux 0.11 STDOUT STDIN STDERR 的创建
- Windows管道(Pipe)重定向stdout,stderr,stdin
- Linux下的Stdin Stdout Stderr
- stdin、stdout、stderr 的说明
- Linux 下 stdin stdout stderr 的由来
- (文件描述符0、1、2),(stdin、stdout、stderr),(终端设备)这三者之间的关系???
- Perl:关于标准输出STDOUT和标准错误STDERR
- stdin,stdout,stderr详解
- stdout、stdin和stderr
- stdin、stdout、stderr
- Bash Shell 之stdin,stdout, stderr以及管道
- 【转】stdin, stdout, stderr 以及重定向
- stdin, stdout, stderr以及重定向