Question 730
A Linux support technician needs to list hidden entries and file permissions in /var/log without opening or changing log files. Which action best meets the requirement?
Explanation
Correct Answer
Long listing with hidden entries reveals directory metadata without altering log contents.
Incorrect Answers
Run top or ps with relevant options and identify the process consuming resources before making changes: process inspection provides evidence of load; terminating tasks before diagnosis could disrupt services; Use ls -la /var/log and inspect the displayed ownership, modes and filenames.
Use grep with the approved search term and file path to filter relevant log lines: use grep with the approved search term and file path to filter relevant log lines: grep matches text patterns within files, reducing manual review without changing the source logs.
Run pwd to confirm the current working directory before resolving relative file paths: run pwd to confirm the current working directory before resolving relative file paths: relative paths are evaluated from the actual working directory, so location must be verified first.






CompTIA A+ Certification Exam: Core 2 (220-1202) Practice Tests