Which command pipeline counts the total number of files in the current directory?

Choose the correct answer

Explanation

Option A uses an incorrect command 'ws'. Option B counts words instead of lines. Option C counts lines, which corresponds to the number of files listed. Option D uses 'wc' without options, which counts lines, words, and bytes, effectively counting files as well. Therefore, 'ls | wc' is the correct command to count the number of files.

Which command pipeline counts the total number of fi… — Basic of linux unix | PakQuizHub