Skip to content

Instantly share code, notes, and snippets.

@hamidreza-s
Created January 15, 2013 12:13
Show Gist options
  • Save hamidreza-s/4538192 to your computer and use it in GitHub Desktop.
Save hamidreza-s/4538192 to your computer and use it in GitHub Desktop.
File descriptor - An integer that identifies an open file within a process. This number is obtained as a result of opening a file. Operations which read, write, or close a file would take the file descriptor as an input parameter. In many operating system implementations, file descriptors are small integers which index a table of open files. In …
# 0, Standard input (stdin) <0
# 1, Standard output (stdout) 1>
# 2, Standard error (stderr) 2>
# Examples:
# redirect stderr (2) to stdout (1)
2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment