Examveda
Examveda

The command to count the number of files in the current directory by using pipes, is

A. ls | wc

B. ls -l | wc -l

C. ls | wc -w

D. ls | ws -c

E. None of the above

Answer: Option C


This Question Belongs to Computer Science >> Unix

Join The Discussion

Comments ( 2 )

  1. Hrithik Mishra
    Hrithik Mishra :
    2 years ago

    The correct option should not be C. The option is not mentioned here, which is ls | wc -l

  2. Shamith Kumar
    Shamith Kumar :
    2 years ago

    ls | wc - l

Related Questions on Unix