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?
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.