[LINUX] UNIX file descriptor

[UNIX file descriptor]

3 standard descriptors

0 Standard input (usually input from the keyboard)

1 Standard output (usually output to the terminal screen)

2 Standard error output (usually output to the terminal screen)

Redirects, pipes

Redirection </ strong> is a function that switches input / output to a file when the command is executed.

Pipe </ strong> is a function that can pass the output result of a command to the standard input of another command.

Recommended Posts