1.

Which command is used for listing files in a directory?(a) ps(b) list(c) ls(d) wcI had been asked this question during an interview.My enquiry is from Listing Directory Contents: Is Command in division The File System of Unix

Answer»

The correct choice is (c) ls

Easiest EXPLANATION: ls command is one of the most powerful commands USED in UNIX system. It comes available with a BUNCH of options for listing files available in the directory. There are a number of options LIKE -l, -a which are used for listing files in different manners according to user’s need.



Discussion

No Comment Found

Related InterviewSolutions