1/14/15 Notes Flashcards
everything starts with init, what starts that process
the kernel
What does every process have?
A parent, some have children and some dont
What does a kill on a parent do the the child processes
it kills the child process
How doe the shell locate executables ?
it uses the PATH
How does inheritance occur?
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.
What does the command env do?
gives you a list of environment variables
What are variables?
a name in a program that has values. The variable can be used and executed in scripts.
When referring to a variable what symbol do you use?
$
Does the process init have a parent process?
No it is god, that is awoken by the kernel
What does the command pstree do?
it gives you a tree of running process and shows the relations ships between them, aka parent to child
Where to local variables get saved?
They only get saved in the local shell
Putting a program variable in the startup file make it what?
A permanent variable, and will be passed down to any shell created
what command would you use to force a variable on to child process ?
export
what command takes off the environment variable
unset