Linux Foundation Certified System Administrator (LFCS) — Question 62
Which RPM command will output the name of the package which supplied the file /etc/exports?
Answer options
- A. rpm -F /etc/exports
- B. rpm -qf /etc/exports
- C. rpm -Kl /etc/exports
- D. rpm -qp /etc/exports
- E. rpm -qi /etc/exports
Correct answer: B
Explanation
The correct command is 'rpm -qf /etc/exports', which queries the RPM database for the package that owns the specified file. The other options either perform different actions, such as verifying package integrity or querying package information without identifying ownership.