Linux stdin stdout stderr
2014-01-13 14:18
381 查看
stdin: 0
stdout: 1 Shell的默认值。
stderr: 2
常见于:
“虚空”的另一个用法
stdout: 1 Shell的默认值。
stderr: 2
常见于:
ls -l 1 > /dev/null 2>&1将stdout重定向到“虚空”, stderr追加给stdout
“虚空”的另一个用法
[oracle@odilab ~]$ ls -ltrh 1.txt -rw-r--r-- 1 oracle oinstall 11M Jan 12 22:52 1.txt [oracle@odilab ~]$ cat /dev/null > 1.txt [oracle@odilab ~]$ ls -ltrh 1.txt -rw-r--r-- 1 oracle oinstall 0 Jan 13 01:22 1.txt
相关文章推荐
- 【转】Unix/Linux下的stdout,stdin同stderr
- linux下stdin和stdout以及stderr
- linux下的stdin,stdout,stderr详解
- Linux下的Stdin Stdout Stderr
- linux 输入--输出--重定向 stdin/stdout/stderr
- linux下的stdin,stdout和stderr理解
- linux 命令之 tee find whereis locate 及stdin stdout stderr
- Linux 下 stdin stdout stderr 的由来
- linux 0.11 STDOUT STDIN STDERR 的创建
- linux下的stdin,stdout,stderr详解
- 利用stdin stdout stderr及POSIX-linux机制重定向写日志
- linux中stdout,stdin,stderr意义
- Linux守护进程的stdout, stdin, stderr
- Unix/Linux下的stdout,stdin和stderr
- linux下的stdout,stdin,stderr
- Linux下的stdout,stdin,stderr
- linux中的 STDIN_FILENO,STDOUT_FILENO和STDERR_FILENO
- linux中stdout,stdin,stderr
- Linux 下 stdin stdout stderr 的由来
- linux中stdout,stdin,stderr意义