NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle0 views

Which standard file descriptors do you know?

Practice

Asked at

AI answer

Standard Unix process file descriptors:

  • 0 — standard input (stdin);
  • 1 — standard output (stdout);
  • 2 — standard error (stderr).

A file descriptor is an integer identifier for an open file or another resource, such as a socket or pipe. In a shell, streams can be redirected, for example: command >out.txt 2>err.txt.