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:
    3 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:
    4 years ago

    ls | wc - l

Related Questions on Unix