exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 154 discussion

Actual exam question from CompTIA's XK0-005
Question #: 154
Topic #: 1
[All XK0-005 Questions]

A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

  • A. rpm -qf /etc/httpd/conf/httpd.conf
  • B. rpm -ql /etc/httpd/conf/httpd.conf
  • C. rpm --query /etc/httpd/conf/httpd.conf
  • D. rpm -q /etc/httpd/conf/httpd.conf
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
linux_admin
8 months, 3 weeks ago
Selected Answer: A
A. rpm -qf /etc/httpd/conf/httpd.conf Explanation: rpm is a command-line package manager used in many Linux distributions, including Red Hat, CentOS, and Fedora. -qf is an option used with the rpm command to query the package that owns a particular file. /etc/httpd/conf/httpd.conf is the path of the configuration file that is missing. So, the command rpm -qf /etc/httpd/conf/httpd.conf will return the name of the RPM package that installed the configuration file on the system
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