CCC Online Test

Question : What command is used to count the total number of lines, words, and characters contained in a file on LINUX?


A. countw
B. wcount
C. wc
D. count p



Solution
C. wc



Explanation

 The most easiest way to count the number of lineswords, and characters in text file is to use the Linux command “wc” in terminal. The command “wc” basically means “word count” and with different optional parameters one can use it to count the number of lineswords, and characters in a text file.