Ch11 Managing Processes Exam
-
A popular program for monitoring running processes in real-time is:
watcher
ghost
mon
top
-
A signal is:
- A technique to send data to a process
- A command argument
- A technique to tell a process to take some sort of action
- A command option
-
If you want a background process to keep running after log out, you can use:
nofg
nohup
bg
nokill
-
In order to run a command called
cmd1
in the background, you would type:cmd1&
start -b cmd1
cmd1@
bg cmd1
-
Placing a ___ character at the end of the command line will put the command in the background.
- B
- !
- &
- ?
-
The
uptime
command prints a statistic representing the system load over what three time spans?(choose three)
- Last minute
- Last thirty minutes
- Last fifteen minutes
- Last ten minutes
- Last hour
- Last five minutes
-
The _____ command will list the commands that are running in your terminal.
proc
ps
ls
list
-
The key press combination that will request a process to stop is:
- CTRL+D
- CTRL+C
- CTRL+Z
- CTRL+P
-
The key press combination that will request a running process terminate:
- CTRL+P
- CTRL+D
- CTRL+Z
- CTRL+C
-
The main advantage of running a process in the background is:
- The process will automatically run at a low priority
- You can be assured that the process will not terminate early
- The process will be logged
- You can continue to use the shell that started the process
-
To change the niceness value of an existing process, you can use the _____ command.
renice
reset
set
nice
-
To execute a command called
cmd1
as a foreground process, you would type:cmd1
fg cmd1
foreground cmd1
cmd1 &
-
To execute a command with the default priority, which value do you pass to the
nice
command?- -20
- 19
- 0
- 20
-
To execute a command with the highest possible priority, which value do you pass to the
nice
command?- 0
- 19
- 20
- -20
-
To execute a command with the lowest possible priority, which value do you pass to the
nice
command?- 19
- 0
- 20
- -20
-
To see how long the system has been running, you can use the _____ command.
uptime
ps
nice
free
-
To see the list of background processes that you have started in your shell, you can run:
process
list
jobs
work
-
To send a paused process to the background, use the _____ command.
fg
jobs
ps
bg
-
To send a signal to a set of processes with the same name, you can run:
grpkill
allkill
killall
sigkill
-
To set a priority value lower than 0, you must log in as which user?
- No user can specify a priority lower than 0
- Any user account
- The root user
- The admin user
-
To view all processes on the system, you can execute:
ps
ps -e
ps --all
ps -f
-
To view statistics on memory availability, you can use:
stat
uname
free
mem
-
To view system memory usage, you can use the _____ command.
uptime
nice
free
ps
-
Using the
kill
command always terminates processes.True or False?
- True
- False
-
What character do you place between commands to execute multiple commands on a single command line?
;
~
&
:
-
What command can be used as a prefix to another command to run it at an altered priority?
nice
pri
low
chpr
-
What command can be used to alter the priority of a running process?
relow
renice
repri
chpr
-
What option to the
kill
command will list the signals for the system?(choose one)
- -9
- -list
- -l
- -r
-
Which of the following is not a valid way to send the force kill signal to a process?
kill -FORCE PID
kill -SIGKILL PID
kill -KILL PID
kill -9 PID
-
Which command will find all processes owned by user
fred
?pgrep -i | fred
ps fred | grep -1 process
pgrep -u fred -l
ps -a | user fred
-
The
watch
command’s default interval is?- 10 minutes
- 12 tics
- 2 seconds
- none, the user must specify time
-
The
screen
command can detach and re-attach terminal sessions.True or False?
- True
- False
-
The proper command to list current
tmux
sessions is?tmux -a
tmux list-sessions
tmux -ls
tmux -l
Subscribe
0 Comments
Newest