โ† All Linux Flashcard Decks

CompTIA Linux+ Test System Architecture Flashcards

7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 CompTIA Linux+ Test System Architecture flashcards as text
  1. Which GRUB2 command is used to regenerate the grub.cfg file from template files in /etc/grub.d/ on a Debian-based system?

    Answer: update-grub

    update-grub is a Debian/Ubuntu wrapper that calls grub-mkconfig to regenerate /boot/grub/grub.cfg from /etc/grub.d/ scripts.

  2. What does the 'lspci -v' command display?

    Answer: Verbose details about all PCI and PCIe devices detected by the kernel

    lspci -v outputs verbose information about each PCI/PCIe device, including vendor, device class, IRQ, and memory regions.

  3. A system administrator needs to persistently set a kernel parameter (e.g., net.ipv4.ip_forward=1) so it survives reboots. Where should this setting be written?

    Answer: /etc/sysctl.conf or a file in /etc/sysctl.d/

    Kernel parameters set via sysctl are made persistent by adding them to /etc/sysctl.conf or a drop-in file under /etc/sysctl.d/, which is loaded at boot.

  4. Which command shows the current NUMA (Non-Uniform Memory Access) topology and memory node assignments on a Linux system?

    Answer: numactl --hardware

    numactl --hardware displays the NUMA node layout, CPU-to-node assignments, and memory distances between nodes.

  5. What is the role of the D-Bus (Desktop Bus) in modern Linux system architecture?

    Answer: Provides inter-process communication for both system services and user applications

    D-Bus is an IPC middleware that allows processes (including systemd, NetworkManager, and user applications) to communicate by sending messages over a common bus.

  6. An administrator uses 'dmesg | grep -i error' after a boot. What is the primary purpose of the dmesg command?

    Answer: Displays kernel ring buffer messages, including hardware detection events and driver errors

    dmesg prints the kernel ring buffer, which contains messages from the kernel and device drivers logged since boot.

  7. Which file contains the mapping between major device numbers and kernel modules/drivers on a Linux system?

    Answer: /proc/devices

    /proc/devices lists the character and block device types registered with the kernel along with their major numbers.