exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 23 discussion

Actual exam question from LPI's 101-500
Question #: 23
Topic #: 1
[All 101-500 Questions]

A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

  • A. apt-get search /etc/debian_version
  • B. apt -r /etc/debian_version
  • C. find /etc/debian_version -dpkg
  • D. dpkg -S /etc/debian_version
  • E. apt-file /etc/debian_version
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linuz
Highly Voted 4 years, 1 month ago
The switch is incorrect. The correct command should be dpkg -S /etc/debian_version Giving the output: base-files: /etc/debian_version
upvoted 22 times
cast7omadrid1
4 years, 1 month ago
The problem is that instead of putting the -S or similar, it says "" . It's a mistake all over the page.
upvoted 8 times
CuriousLinuxCat
2 years, 11 months ago
Whoever comes across this message, know that this website uses: ("") for a hyphen (-) and some other characters that probably has been encoded wrong that makes ("), (`) and (-) look wrong.
upvoted 11 times
...
...
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: D
upvoted 1 times
...
Lazylinux
2 years, 2 months ago
Selected Answer: D
dpkg -S followed by whatever you want to search for
upvoted 4 times
...
jegga
3 years, 1 month ago
option D is close to the answer. This should be the correct answer: dpkg-query -S /etc/debian_version
upvoted 2 times
...
McLaba
3 years, 3 months ago
no one is correct
upvoted 1 times
...
penguinx64
3 years, 4 months ago
-S, --search filename-search-pattern... Search for a filename from installed packages.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago