1.

Which command is used for counting words, lines and characters in a file?(a) diff(b) count(c) man(d) wcThis question was posed to me in an internship interview.My doubt stems from Counting File Data: wc Command in chapter Handling Ordinary Files of Unix

Answer»

Correct OPTION is (d) wc

The explanation: UNIX PROVIDES a universal word counting program that ALLOWS us to count the NUMBER of words, lines and characters in a file. It takes a filename as an argument as produces a 4 column output.



Discussion

No Comment Found

Related InterviewSolutions