What is a file descriptor, and what are 0, 1 and 2?
IntermediateConceptLinux and shell
Answer
An integer handle to an open file, socket or pipe. 0 is stdin, 1 is stdout, 2 is stderr. Per-process limits are shown by ulimit -n, and "Too many open files" means that limit was hit.
More on Linux and shell
What does exit code 0 mean, and how do you see the last command's exit code?BeginnerHard link vs soft link?BeginnerWhat do the permissions `755` and `640` mean?BeginnerHow do you find which process is using the most CPU right now?BeginnerWhat is a zombie process?IntermediateSIGTERM vs SIGKILL?Beginner