Courseiva
Devices, Filesystems and FHSeasyMultiple ChoiceObjective-mapped

LPIC-1 Devices, Filesystems and FHS Practice Question

A Linux technician receives a report that a USB flash drive inserted into a system is not automatically detected. Which command should the technician use to verify if the device is recognized by the kernel?

⚠ Common exam trap

Many exam-takers assume `lsusb` or `fdisk -l` are sufficient for kernel-level detection, but `lsusb` only confirms USB enumeration, not block device assignment, and `fdisk -l` requires prior kernel recognition.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

dmesg | tail

The `dmesg | tail` command displays kernel ring buffer messages, which include real-time hardware detection events such as USB device insertion. When a USB flash drive is plugged in, the kernel logs messages about device recognition, driver binding, and assigned device nodes (e.g., /dev/sdb). This makes it the most direct way to verify if the kernel has detected the device.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • fdisk -l

    Why it's wrong here

    fdisk lists partitions but requires the device to be recognized first.

  • lsusb

    Why it's wrong here

    lsusb lists USB devices but may not show kernel detection in real time without rescanning.

  • blkid

    Why it's wrong here

    blkid shows block device attributes but only for devices already recognized by the kernel.

  • dmesg | tail

    Why this is correct

    dmesg output includes kernel messages; tail shows the latest entries, including USB detection.

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.