Question 10
A Linux administrator faces this situation: An import file has colon-separated fields and only its third field is needed for reporting. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Extract the third field with cut -d: -f3 on the correctly delimited stream. This corrects the case-specific failure. First verify: Inspect the input delimiter and verify the field count on representative lines. Then demonstrate success: Sample rows return precisely the third colon-separated value without adjacent fields.
Incorrect Answers
Run sort on the list before uniq -c to count identical hostname occurrences. That would matter when a list of hostnames contains repeated lines and an operator needs accurate occurrence counts. The relevant distinction in this case is: Extract the third field with cut -d: -f3 on the correctly delimited stream.
Use tr '[:upper:]' '[:lower:]' in the supported locale for a text stream. That would matter when a stream includes mixed-case letters but downstream comparison requires lowercase text. It does not address this case's requirement: An import file has colon-separated fields and only its third field is needed for reporting.
Use tail -n 10 on the intended file and tail -f only when live following is required. That would matter when an administrator needs to inspect just the newest ten lines of a growing plain-text log. That separate mechanism does not verify the needed Linux administration outcome in this case.