Class 11 Quiz Flashcards

1
Q

What symbols come before an option on the command line?

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

What is the program the collects the characters you type at the command line?

A

tty

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

Does the shell check that a program gets the arguments or options it needs?

A

no, that is the responsibility of the program itself

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

If you wanted to run the script work.sh in your current directory without using bash, what would you type at the command line?

A

./work.sh

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

What is a process?

A

a running program

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

What does the shell do after it runs the program the user entered at the command line?

A

it goes into an inactive state called sleep

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

What does a program do just before it stops running?

A

it sends an exit status to the shell

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

What does an exit status of 0 mean?

A

it means that the program encountered no errors

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

When does this program send what you have typed at the command line to the shell?

A

when you hit Enter on a PC or Return on a Mac

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