Question
a.
ls | wc
b.
ls -l | wc -l
c.
ls | wc -w
d.
ls | ws -c
Posted under Operating System
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?
View solution
Q. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
View solution
Q. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
View solution
Q. Which of the following commands is used to change the working directory?
View solution
Q. Which of the following commands is used to view your file 24 lines at a time?
View solution
Q. Which shell's wild-cards is used to match a single character?
View solution
Q. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
View solution
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?
View solution
Q. The command chmod 761 note is equivalent to
View solution
Q. The commonly used UNIX commands like date, ls, cat, etc. are stored in
View solution
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?
View solution
Q. Which of the following commands is used to summarize the disk usage?
View solution
Q. Which command is used to sort the lines of data in a file in alphabetical order?
View solution
Q. If a file has read and write permissions for the owner, then the octal representation of the permissions will be
View solution
Q. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
View solution
Q. Which is the earliest and most widely used shell that came with the UNIX system?
View solution
Q. The seventh field of /etc/password is
View solution
Q. Which command is used to display the end of the file?
View solution
Q. Which command is used to create a directory?
View solution
Q. Which command is used to display the device name of the terminal you are using?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Operating System? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!