ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 137 - XK0-005 discussion

Report
Export

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
Answers
A.
rpm -qf /etc/httpd/conf/httpd.conf
B.
rpm -ql /etc/httpd/conf/httpd.conf
Answers
B.
rpm -ql /etc/httpd/conf/httpd.conf
C.
rpm -query /etc/httpd/conf/httpd.conf
Answers
C.
rpm -query /etc/httpd/conf/httpd.conf
D.
rpm -q /etc/httpd/conf/httpd.conf
Answers
D.
rpm -q /etc/httpd/conf/httpd.conf
Suggested answer: A

Explanation:

The rpm -qf /etc/httpd/conf/httpd.conf command will identify the RPM package that installed the configuration file. This command will query the database of installed packages and display the name of the package that owns the specified file. The rpm -ql /etc/httpd/conf/httpd.conf command is invalid, as -ql is not a valid option for rpm. The rpm --query /etc/httpd/conf/httpd.conf command is incorrect, as --query requires a package name, not a file name. The rpm -q /etc/httpd/conf/httpd.conf command is incorrect, as -q requires a package name, not a file name. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19: Managing Packages and Software, page 560.

asked 02/10/2024
Juan Gonzalez
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first