Multiple choice technology

The command "wc" is used to

  1. Compares files, and shows where they differ.

  2. Tells you how many lines, words, and characters there are in a file.

  3. Removes a file

  4. Shows the first part of a file.

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

The wc command (word count) in Unix/Linux counts and displays the number of lines, words, and bytes/characters in a file. By default, it shows all three counts. Common options include -l (lines only), -w (words only), and -c (bytes only).