Home »
MCQs »
Linux MCQs
Which Linux command is used to count the total number of lines, words, and characters contained in a file?
7. Which Linux command is used to count the total number of lines, words, and characters contained in a file?
- count
- wcount
- wc
- countw
Answer: C) wc
Explanation:
The "wc" command is used to count the number of lines, words, characters, and bytes of each given file or standard input and print the result.