Multiple choice technology operating systems

Which command is used to count the no of characters in a file?

  1. wc -m

  2. wc -l

  3. wc -s

  4. wc -w

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The standard wc utility with the -m option is specifically designed to count characters in a file. By contrast, the -l option counts lines, -w counts words, and -s is not a valid character-counting option in Unix/Linux.