Moderate

What command is used to count just the number of characters in a file ?

Correct answer: C. wc - c

  • A. wc - r
  • B. wc - w
  • C. wc - c
  • D. wc - 1

Explanation

The `wc -c` option counts the number of bytes in a file and is traditionally described in basic Unix questions as counting characters. In multibyte locales, exact character counting is done with `wc -m`, which is not among the options.

Last updated

Practise Software Development Lifecycle

423 free Software Development Lifecycle MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions