What command is used to count just the number of characters in a file? A. wc – r B. wc – w C. wc – c D. wc – 1 E. None of the above

wc - r
wc - w
wc - c
wc - 1 E. None of the above

The correct answer is C. wc – c.

The wc command is used to count the number of lines, words, and characters in a file. The -c option tells wc to count only the number of characters.

The other options are:

  • A. wc – r: This option tells wc to count the number of lines that are not blank.
  • B. wc – w: This option tells wc to count the number of words.
  • D. wc – 1: This option tells wc to print the number of lines in the file.
  • E. None of the above: This option is not a valid option for the wc command.