1.

Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?(a) ls(b) ls -a(c) ls.???*(d) ls *This question was posed to me during an interview.I'd like to ask this question from Pattern Matching, Escaping and Quoting topic in portion The Shell of Unix

Answer»

Correct CHOICE is (C) ls.???*

Best explanation: The * doesn’t MATCH all files beginning with a (.) dot. So if we NEED to lists all the HIDDEN filenames in our directory having at least three characters after the dot (.) we can use the following command,



Discussion

No Comment Found

Related InterviewSolutions