nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #836

LFCS Question #836: Real Exam Question with Answer & Explanation

The correct answer is E: dpkg-L pkgname. The dpkg -L command is used to list all the files that belong to a specified installed Debian package.

Submitted by fatema_kw· Apr 18, 2026Essential Commands

Question

How do you get a list of files that have been installed from a dpkg package?

Options

  • Adpkg-I pkgname
  • Bdpkg-C pkgname
  • Cdpkg-s pkgname
  • Ddpkg-S pkgname
  • Edpkg-L pkgname

Explanation

The dpkg -L command is used to list all the files that belong to a specified installed Debian package.

Common mistakes.

  • A. dpkg -I is not a standard or recognized option for listing files within a package; -i is typically used for installing a package.
  • B. The dpkg -C command is used to check for broken or partially installed packages, not to list the files within a package.
  • C. The dpkg -s pkgname command displays the status information (e.g., installed, removed) about a package, but it does not list its files.
  • D. The dpkg -S filename command searches for which installed package owns a particular file, which is the opposite of listing files within a known package.

Concept tested. DPKG package file listing

Reference. https://manpages.debian.org/testing/dpkg/dpkg.8.en.html

Topics

#dpkg#package management#command line#file listing

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions