Multiple choice technology operating systems

How to display number of lines in a file

  1. wc –l

  2. wc –line

  3. wc –c

  4. other

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

wc -l counts the number of lines in a file. wc stands for 'word count' and -l specifies lines. The -c option counts bytes, not lines. There is no -line option for wc.