A Linux administrator is trying to determine the character count on many log files. Which of the following command and flag combinations should the administrator use?
C. wc -m
Explanation:
The wc (word count) command in Linux can be used to count characters, words, and lines. The -m flag specifically counts the number of characters in a file, which is what the administrator needs.
Why the other answers are incorrect:
A. tr -d: The tr command is used to translate or delete characters, but it doesn't count characters.
B. uniq -c: The uniq command is used to filter out repeated lines in a file, and the -c flag counts the occurrences of each unique line, not characters.
D. grep -c: The grep command with the -c flag counts the number of matching lines, not the number of characters.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
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.
044f354
2 months, 4 weeks ago