Class 12 Quiz Flashcards

1
Q

By default, where does Standard Input come from?

A

the keyboard

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

By default, where does Standard Output go?

A

to the screen

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

By default, where does Standard Error go?

A

to the screen

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

If you wanted to send the output of ls to the file dir_listing.txt, what would you enter at the command line?

A

ls > dir_listing.txt

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

If you wanted the program do_something to take input from the file data.txt what would you write at the command line?

A

do_something < data.txt

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

If you wanted to run the program do_something but have no output appear on the screen, or be sent to a file, what would you type at the command line?

A

do_something > /dev/null

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

If you wanted to add the output of who to the file logged_on.txt what would you type at the command line?

A

who &raquo_space; logged_on.txt

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

If a program does not specify where its input comes from, where would it come from?

A

from Standard Input

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

If a program does not specify where its output goes to, where would it go?

A

to Standard Output

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

Where does a program send its error messages?

A

to Standard Error

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