CertNexus Certified Cyber Secure Coder (CSC) — Question 71

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?

Answer options

Correct answer: C

Explanation

The correct answer is C, as the 'wc -m' command counts the number of characters in the specified files. Option A, 'tr -d', is used for deleting characters and does not provide a count. Option B, 'uniq -c', counts the unique lines, and option D, 'grep -c', counts the number of matching lines based on a pattern, neither of which counts characters.