Multiple choice

Which of the following UNIX commands counts the number of lines, words, and characters in a file?

  1. wc filename

  2. emacs filename

  3. gzip filename

  4. gzcat filename

  5. rm filename

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This command tells how many lines, words, and characters there are in a file.