Exam 5 Flashcards
What is the full path to the directory that contains information about each kernel module installed on the computer?
incorrect answer. Correct Answer:/sys/module
Which of the following is the full path and filename of the file that contains information about which interrupt request (IRQ) channels are being used by each hardware device on the system?
/proc/interrupts
Which of the following commands displays information about the PCI devices installed on the system?
lspci
Which of the following commands displays information about the RAID devices on the computer?
hwinfo –listmd
Listen to exam instructions
You have installed a new Linux system, and you want to find out information about the CPU and memory.
Which of the following files contains this information? (Select two.)
/cpuinfo
/meminfo
Which of the following commands will display the boot options that were given to the kernel at boot time?
cat /proc/cmdline
You have been currently using a cable to connect your Linux laptop to the company network. You are now, however, required to attend several meetings a week in other parts of the building, and you would like to be able to bring your laptop with you, but you still need access to the network while in the meeting.
Which of the following device types would BEST meet your needs?
WiFi
The hard disk in your Linux laptop has almost reached its maximum storage capacity. You would like to add more hard disk storage, but there is no internal room in the computer.
Which of the following device types is BEST to use if you want to achieve the fastest throughput?
USB
As a network administrator, you have had several employees ask for a way in which they could connect their phones to their Linux computers without the use of wires.
Which of the following device types would BEST meet these employees’ needs?
Bluetooth
Which of the following commands identifies dependency information for all modules and displays the results on the screen without creating a file with the dependency information?
depmod -an
Listen to exam instructions
You’ve just purchased a new input device named GamePad that you want to use on your computer. You don’t think that the GamePad driver (the kernel module) was compiled into the kernel of your Linux distribution.
Which of the following commands will install the driver (gamepad.ko) into the kernel? (Select two.)
insmod gamepad.ko
modprobe gamepad
Which command displays information about all loaded modules on the system?
lsmod
Listen to exam instructions
The modprobe.conf file provides the modprobe utility with default commands for loading modules at boot time.
What is the entry you can use in the file to load a module at boot time?
install
Which utility runs at startup to load modules into the kernel?
modprobe
What file is used to provide configuration settings for the modprobe utility when the modprobe.conf file does not exist?
modprobe.d
Which of the following commands will check for dependencies before loading the gameport module in the kernel?
modprobe gameport
Which of the following commands will check for dependencies before removing the debug module from the kernel?
modprobe -r debug
Which of the following are important to remember when using the rmmod command to remove a module from the kernel? (Select two.)
Does not look for dependencies.
Cannot unload the module if it is in use.
Which of the following describes the difference between the /lib/modules directory and the /usr/lib/modules directory? (Select two.)
Both directories contain hard links to the kernel modules.
/lib/modules is available to root in single-user mode, while /usr/lib/modules is available to all users.
Which of the following device categories do RAM chips, CPUs, expansion cards (such as PCI cards), and standard hard disk drives belong to?
Coldplug devices
Which of the following daemons allow processes to communicate with each other and relay information about hotplug devices?
D-Bus
Which of the following daemons provides all applications with data about the current hardware?
hald
Which of the following devices is a hotplug device?
USB flash drive
Match the term on the left with the correct definition on the right.
Allows processes to communicate with each other and notify one another of new hotplug devices.
Correct Answer:
D-Bus
Provides all applications with data about current hardware.
Correct Answer:
hald
Dynamically creates device files in a virtual file system as devices are added and removed.
Correct Answer:
udev
Exports information about hotplug devices so that other utilities can access the information.
Correct Answer:
sysfs
Listen to exam instructions
What is the full path to the directory that allows you to name devices when they are connected to the system?
/etc/udev/rules.d/
Which of the following exports information about hotplug devices so that other utilities can access the information?
sysfs
Which of the following commands is designed to give you the ability to control the udev daemon?
udevadm control
Which of the following commands would you enter to add the pci subsystem to your Linux server? (Select from the drop-down list.)
udevadm trigger –action=add –subsystem-match=pci
When a hotplug device is added or removed, the kernel sends out a uevent message that is picked up by the udev daemon (udevd).
Based on the rules defined in the files in the /etc/udev/rules.d directory, what does udevd do next after udevd initiates the device?
Creates the appropriate device file in the /dev directory.
Which of the following file types can create processes on a Linux system? (Select two.)
Internal shell commands
Binary executables
Which of the following is the number assigned to a process that spawns another process?
PPID
During the process of troubleshooting a resource issue on a server, a technician enters the following command and receives the output showing zombie processes.
[user@centos7]#ps aux |grep Z
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
ljenkins 2346 0.0 0.0 0 0 ? Z 08:44 0:02 [kdmflush]
ljenkins 3365 0.0 0.0 0 0 ? Z 08:64 0:14 [bioset]
ljenkins 3812 0.0 0.0 0 0 ? Z 09:31 0:05 [bioset]
ljenkins 4957 0.1 0.0 0 0 ? Z 10:16 0:35 [email-client]
ljenkins 5276 0.1 0.0 0 0 ? Z 12:04 0:45 [email-client]
What should the technician do NEXT to resolve the issue with kdmflush zombie processes?
Kill the parent process.
After running ps -ef, you notice a number of processes that display getty. You are not familiar with that process and want to make sure it is not malicious, so you check the man pages and find that it is a valid Linux process that manages physical or virtual terminals (TTYs).
What should you do NEXT?
Recognize that the getty processes are not a concern.
Mario, a technician, entered the pgrep -u sally command and received the following result:
1036
Which of the following describes the result?
The process ID of the process that was executed by the user sally.