File Descriptors Flashcards

1
Q

What is the standard input file descriptor?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the standard output file descriptor?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the standard error file descriptor?

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a bit bucket?

A

/dev/null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you send command output to a file descriptor?

A

command >&n where n is file descriptor 0,1, or 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly