Workbook 7 Chap 1 Flashcards

1
Q

In Linux, programs can generally be grouped into three designs. What are they? [3]

A
  1. Graphical Programs
  2. Screen Programs
  3. Terminal Programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are stdin and stdout usually connected to? [4]

A

Usually, stdin and stdout are connected to the terminal that runs the command.

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

How do you redirect output to a file? [4]

A

The bash shell uses > to redirect a process’s stdout stream to a file.

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

How do you append output to a file? [4]

A

To append a command’s output to a file, rather than clobbering it, bash uses&raquo_space;.

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

How do you redirect input? [5]

A

bash uses < to cause them to read input from somewhere other than the keyboard.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
What are the file descriptors for 
(i) stderr, 
(ii) stdin 
(iii) stdout
 [6]
A

i) 0
ii) 1
iii) 2

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

How can you examine the open files and file descriptors of a currently running process whose
PID is 12345? [7]

A

xxx

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