Linux - Engineering

Q1:

Which of the following command can you execute to count the number of lines in a file?

A lc

B wc - l

C cl

D count

E None of the above

ANS:B - wc - l

wc is used for word count which will result all the details like number of words line numbers and -l specifies that we only want the line count.