Class 19 Flashcards

1
Q

What parameter gives the status code returned by the last command run?

A

?

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

What parameter gives the total number of arguments passed to a script from the command line?

A

#

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

What parameter gives the full pathname of the script that is currently being run?

A

0

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

What parameter gives the first command line argument to a script or function?

A

1

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

If you wanted to use the value of the variable team inside quotes, what kind of quotes would you use?

A

double quotes, “

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

If you wanted to remove the value of the variable team, what would you type at the command line?

A

team= or unset team

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

What is the name of the first process created when the machine starts?

A

init or systemd

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

Can two processes running at the same time have the same process ID number?

A

no

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

Can a process ID number be reused after the process has finished?

A

yes

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

If the process ID of your current shell is 15062, what is the parent process ID of a shell script you run from your current shell?

A

15062

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