O'Reilly logo

CompTIA® Linux+ Certification, Powered by LPI, Student Manual by Axzo Press

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Process and module management 829
Unit summary: Process and module management
Topic A In this topic, you learned that processes are running instances of programs. User
processes are associated with a particular user, while daemons are system processes
started and run by the kernel. You learned how to list processes and view process
dependencies. You learned that the /proc and /sys directories are dynamic lists of files
and directories that represent running processes and active components, respectively.
You also learned how to kill processes, that is, stop them from running.
Topic B In this topic, you learned that foreground processes run in a subshell and block further
activity in the parent shell. Background processes run in a subshell, but don’t block
their parent shell. You also managed process priority by setting nice and renice values.
Topic C In this topic, you learned that you can view kernel information with commands such as
uname. You also learned how to view files in the /proc directory to obtain system
information. You tuned the kernel by setting sysctl values. Finally, you learned how to
view, load, and unload kernel modules by using the modprobe and related commands.
Review questions
1 True or false? A process is an executable application file stored on a disk.
False. That’s a program. A process is a running program.
2 Daemons are also known as __________.
services
3 Every process has a __________, which identifies the PID of the process that
started it.
PPID (parent process ID)
4 What is the PID of the init daemon?
1
5 True or false? PIDs are not assigned sequentially.
True
6 What command do you use to view the process tree with PIDs listed for each?
pstree -p
7 What would be output when you enter the ps aux command?
A list of processes, their PIDs, state, priority, CPU time, and user ID for all processes across all
terminals.
8 What does it mean that the top command is “interactive”?
It doesn’t simply output information and stop. It continues to run, enabling you to enter commands
and view information until you stop it.
9 True or false? There are 64 different kill signals you can send to a process to stop it.
True
10 What is the name and number of the “absolute kill” signal?
SIGKILL, 9
830 CompTIA Linux+ Certification, Powered by LPI
11 What single command do you enter to kill all processes named sleep?
killall
12 Starting a new subshell to execute a process is known as:
A Stemming
B Splitting
C Forking
D Subbing
13 To start a program in the background, append the __________ character to its
command.
& (ampersand)
14 True or false? You can directly set a process’s priority.
False. You can set a nice value, which suggests to the kernel the priority it should assign to the
process.
15 When using the renice command, you must supply it the __________ of the
process to prioritize.
PID
16 You could use the uname command or view the contents of the __________ file to
output version information about your kernel.
/proc/version
17 Which command can you use to view the contents of a file in the /proc directory?
A
less
B
more
C
tail
D
cat
18 What is the command you use to view or tune kernel settings?
sysctl
19 You’ve tuned the kernel and now want to reload those settings the next time you
boot your system. What file do you edit to enable the settings?
/etc/sysctl.conf
20 Which command installs a module, taking into account dependencies?
A
modprobe
B
insmod
C
installmod
D
modinstall
21 What is the name of the module configuration file or directory for current kernel
versions that replaced the older /etc/modules.conf file?
/etc/modprobe.d/

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required