Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

file descriptor bash

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 >)
 
PREVIOUS NEXT
Tagged: #file #descriptor #bash
ADD COMMENT
Topic
Name
2+6 =