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?

  1. count
  2. wcount
  3. wc
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.