- Input/Output, generally referred to as I/O, is a term that covers the ways that a computer interest with the outside world. Screens, keyboards, files, and networks are all forms of I/O.
- Unix-like systems treat all external devices as files. We can see these under the
/dev
directory. - I/O streams are located under
/dev/fd
. Files there are given a number, known as a file descriptor. There are three default streams:
- Standard input
/dev/fd/0
- Standard output
/dev/fd/1
- Standard error
/dev/fd/2