📜  文件描述符 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:07.835000             🧑  作者: Mango

代码示例1
When bash starts it opens the three standard file descriptors: 
- stdin (file descriptor 0)
- stdout (file descriptor 1)
- stderr (file descriptor 2)

Can use these sometimes explicityly
$ echo hello > file.txt
$ echo hello 2> file.txt

(file descriptor before >)