0 views
Which standard file descriptors do you know?
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.
Also asked at RWB
- Why did you decide to change jobs / leave your current company?
- What is the key difference between TCP and UDP?
- What is the difference between git merge and git rebase? When should each approach be used?
- What is an inode in Linux?
- Which command is used to determine the route of a packet from your device to the target host?
Similar questions
- What does strace show when a file is opened (open/openat)?
- What are Linux system calls, and which ones do you know?
- What is an exit code, and how can you find out what it is?
- What will strace output when run on a binary?
- Does a closed file have an inode? What is the difference between an open and a closed file when it is deleted?