WorksheetsTest Review for Senior IT Units 2-3
Total questions: 13
Worksheet time: 7mins
What does sleep do
hibernates the computer so everyone's processes stop
halts the process for a specific amount of time
consumes a ton of cpu resources
Ctrl - C is equivalent to
SIGINT
SIGKILL
SIGSTP
SIGSTOP
can never be captures
CTL-Z is equivalent to
SIGTSTP
SIGKILL
SIGINT
SIGHUP
SIGSTOP
To capture a signal in BASH you can
throw and catch exceptions
use the trap command
use an if / else based on the command line parameter
use $ signal SIGINT echo "I got interrupted"
ps, grep, and awk
The process id is 17
The parent process is 17
This is the 17th login for this user
This user is using the terminal identified as 17
kill -9 1746
is a SIGKILL
Can be trapped using trap
Can be trapped using catch and throw
can be trapped using system.exception
Which one will list all the processes running?
ps -aef
ps -f
ps a
ps f
SSHD
is a daemon
allows for anonymous login
always requires two factor authentication
Allows for trapping a SIGHUP
You close the putty window you are using to log into a server by clicking the x in the window
you caused a SIGHUP
you caused a SIGKILL
you caused a SIGINT
you caused a SIGEXIT
you caused a SIGTERM
Which one of the following processes gets the highest priority ?
$ bash xPrime.sh &
$ nice --10 xPrime.sh
$ nice -19 xPrime.sh
$ nice -n -5 xPrime.sh
Which of the following commands definitely will kill the process runMe with a PID of 1824
$ pkill $(pidof runMe)
$ kill -9 $(pgrep runMe)
$kill -9 ./runMe
kill -15 runMe
A fork
creates a new parent process
will get a pid of 0 assigned to it initially when called from a compiled program
does not contain memory from the parent process
waits until the parent is completed before starting
stdout
is output data to the terminal that is not an error
is output from a keyboard to the terminal
is where error messages get sent to
is the standard template library for creating files
