Explore Hardware (2) Flashcards

Objective 102.1 - Weight 2

1
Q

Which of the following directory’s files are read by the lsblk command to display information?

  1. /proc
  2. /dev
  3. /run
  4. /media
  5. /sys
A
  1. /sys

The /sys directory (sysfs) contains files which are read by the lsblk command to display information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands displays information concerning hardware attached to the PCI bus?

  1. lsblk
  2. ls /dev/disk/by-path
  3. cat /proc/dma
  4. lspci
  5. lsusb
  6. ls -l /media
A
  1. lspci
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following commands displays information concerning hardware attached via USB?

  1. lsblk
  2. ls /dev/disk/by-path
  3. cat /proc/dma
  4. lspci
  5. lsusb
  6. ls -l /media
A

5.lsusb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following commands allows you to see all the currently inserted modules?

  1. modprobe
  2. modprobe -r
  3. lsmod
  4. modinfo
  5. rmmod
  6. insmod
A
  1. lsmod

The lsmod command allows you to see all the currently inserted modules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following commands allows you to see detailed information on a specific module?

  1. modprobe
  2. modprobe -r
  3. lsmod
  4. modinfo
  5. rmmod
  6. insmod
A
  1. modinfo

The modinfo command allows you to see detailed information on a specific module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which of the following commands allows you to insert a specific module, but none of its needed dependent modules?

  1. modprobe
  2. modprobe -r
  3. lsmod
  4. modinfo
  5. rmmod
  6. insmod
A
  1. insmod

The insmod command allows you to insert a specific module, but none of its needed dependent modules. Also you have to use an absolute directory reference to specify the module to be inserted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following commands allows you to insert a specific module, and all its dependent modules?

  1. modprobe
  2. modprobe -r
  3. lsmod
  4. modinfo
  5. rmmod
  6. insmod
A
  1. modprobe

The modprobe command allows you to insert a specific module, and all its needed dependent modules are automatically loaded with it. Also you do NOT have to use an absolute directory reference to specify the module to be inserted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following handles setting up files in the /dev directory for cold plug devices?

  1. udev
  2. modprobe
  3. insmod
  4. device mapper
  5. sysfs
  6. dbus
A
  1. udev

udev is responsible for setting up the files in the /dev directory for a cold plug device at boot time, and uses a pre-defined set of rules and the information in sysfs (/sys) to help in this responsibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is a daemon that runs on the Linux system that allows communication between programs, such as those that handle hot and cold plug devices?

  1. udev
  2. modprobe
  3. insmod
  4. device mapper
  5. sysfs
  6. dbus
A
  1. dbus

dbus is a daemon that runs on the Linux system that allows communication between programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly