Multiple choice technology operating systems

wc command can be used to count the number of lines in a file

  1. True

  2. False

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

The 'wc' (word count) command with the '-l' flag counts the number of lines in a file. By default, 'wc' shows line count, word count, and byte count. This is a standard Unix utility for text file statistics.

AI explanation

To answer this question, let's understand the purpose of the wc command.

The wc command is a command-line utility in Unix-like operating systems that stands for "word count". It is primarily used to count the number of lines, words, and characters in a file.

So, the given statement is true. The wc command can indeed be used to count the number of lines in a file.

Therefore, the correct answer is A) True.