1/14/15 Notes Flashcards

1
Q

everything starts with init, what starts that process

A

the kernel

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

What does every process have?

A

A parent, some have children and some dont

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

What does a kill on a parent do the the child processes

A

it kills the child process

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

How doe the shell locate executables ?

A

it uses the PATH

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

How does inheritance occur?

A

Inheritance occurs when a new shell is created. But inheritance only happens at the point of creation. A new environment variable in the parent does NOT automatically get passed down to the children.

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

What does the command env do?

A

gives you a list of environment variables

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

What are variables?

A

a name in a program that has values. The variable can be used and executed in scripts.

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

When referring to a variable what symbol do you use?

A

$

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

Does the process init have a parent process?

A

No it is god, that is awoken by the kernel

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

What does the command pstree do?

A

it gives you a tree of running process and shows the relations ships between them, aka parent to child

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

Where to local variables get saved?

A

They only get saved in the local shell

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

Putting a program variable in the startup file make it what?

A

A permanent variable, and will be passed down to any shell created

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

what command would you use to force a variable on to child process ?

A

export

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

what command takes off the environment variable

A

unset

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