I think this post is not off-topic.We had three traditional file descriptors in Unix contexts:
0 == STDIN 1 == STDOUT 2 == STDERR But in new articles, blogs, posts, answers, or so on, I read more than above FDs, For example:
find out which file descriptors share the same “open file description”
Why is using a shell loop to process text considered bad practice?
I/O Redirection
Using exec
File descriptors & shell scripting
However Gilles answered in last link, But after some googling I didn't found a reference about the given FDs. Also when I use the following hack :
root@debian:/home/mohsen# ls /dev/fd/ 0 1 2 3 I don't watch more than 4 , But I saw 4 5 or 7 in some examples, I have the following three serious question:
- What's
/dev/fd/3FD? - Where're the rest of them?
- Do you know a related reference about rest of them?