Examveda
Examveda

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

A. wc - 1

B. wc -c

C. wc -w

D. wc -r

E. None of the above

Answer: Option B

Solution(By Examveda Team)

In Unix, the wc command is used to count words, lines, and characters in a file. The -c option specifically instructs wc to count just the number of characters in the file.
So, wc -c is the correct command to count just the number of characters in a file.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix