Skip to content

Instantly share code, notes, and snippets.

@seansu4you87
Last active August 29, 2015 14:07
Show Gist options
  • Save seansu4you87/48f187e7decf07f42a80 to your computer and use it in GitHub Desktop.
Save seansu4you87/48f187e7decf07f42a80 to your computer and use it in GitHub Desktop.
IO

IO

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment