adplus-dvertising
frame-decoration

Question

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

Posted under Operating System

Answer: (c).ls | wc -w

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. Which of the following commands is used to get directory one level up?

Q. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

Q. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

Q. Which of the following commands is used to change the working directory?

Q. Which of the following commands is used to view your file 24 lines at a time?

Q. Which shell's wild-cards is used to match a single character?

Q. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.

Q. Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?

Q. The command chmod 761 note is equivalent to

Q. The commonly used UNIX commands like date, ls, cat, etc. are stored in

Q. Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?

Q. Which of the following commands is used to summarize the disk usage?

Q. Which command is used to sort the lines of data in a file in alphabetical order?

Q. If a file has read and write permissions for the owner, then the octal representation of the permissions will be

Q. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

Q. Which is the earliest and most widely used shell that came with the UNIX system?

Q. The seventh field of /etc/password is

Q. Which command is used to display the end of the file?

Q. Which command is used to create a directory?

Q. Which command is used to display the device name of the terminal you are using?