A file descriptor is a place holder for an open file and is usually identified by a positive integer. When a process is created it gets three file descriptors by default: 0 (standard input), 1 (standard output) and 2 (standard error).
Any additional files you open will be given file descriptors of 3 and higher.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.