1.

Which option is used with ls to display attributes of the directory ?(a) -a(b) -ld(c) -d(d) -oThis question was posed to me during an interview for a job.The question is from Listing Directory Contents: Is Command in portion The File System of Unix

Answer»

Correct option is (c) -d

For EXPLANATION: LS command when USED with directory name as an argument, lists all the files in the directory. To FORCE ls to list the attributes of the directory we use the -LD option.



Discussion

No Comment Found

Related InterviewSolutions