โ† 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. An administrator wants to disable a service so it never starts at boot but can still be started manually. Which command achieves this with systemd?

    Answer: systemctl disable

    systemctl disable removes the symlinks that cause a service to start at boot while leaving manual start available.

  2. Which file in /proc exposes the physical and virtual memory statistics the kernel maintains, such as MemTotal and SwapFree?

    Answer: /proc/meminfo

    /proc/meminfo contains detailed memory statistics including total RAM, free RAM, buffers, cached memory, and swap usage.

  3. A technician adds a new SATA SSD to a running Linux system. Which command should be run to make the kernel detect the new drive without rebooting?

    Answer: echo '- - -' > /sys/class/scsi_host/host0/scan

    Writing '- - -' to a SCSI host's scan file triggers the kernel to rescan the SCSI/SATA bus for new devices without rebooting.

  4. Which CPU scheduling policy is designed for real-time processes that must run for a fixed time slice and then yield to other real-time tasks of equal priority?

    Answer: SCHED_RR

    SCHED_RR (Round Robin) is a real-time policy that gives each process of equal priority a fixed time quantum before rotating.

  5. What is the function of the initramfs (initial RAM filesystem) during the Linux boot process?

    Answer: Provides a temporary root filesystem to load drivers needed to mount the real root

    The initramfs is a compressed cpio archive loaded into RAM that provides drivers and tools needed to locate and mount the real root filesystem.

  6. A Linux system has two CPUs. The administrator wants to prevent a specific process from running on CPU 0. Which command accomplishes this?

    Answer: taskset -c 1

    taskset -c 1 sets the CPU affinity mask so the process runs only on CPU 1, excluding CPU 0.

  7. Which kernel parameter file under /proc/sys controls the maximum number of open file descriptors system-wide?

    Answer: /proc/sys/fs/file-max

    /proc/sys/fs/file-max sets the system-wide limit on the number of simultaneously open file descriptors.