Which command counts only the number of lines in a given file?

Choose the correct answer

Explanation

Option A (wc -l) outputs the count of lines in a file. Option B (wc -w) counts words, option C (wc -c) counts bytes, and option D (wc -r) is not a valid wc option.

Which command counts only the number of lines in a g… — Basic of linux unix | PakQuizHub