Which command counts only the number of lines in a given file?
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.
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.