Unix - Engineering

Q1:

Which of the following commands is used to display the directory attributes rather than its contents?

A ls -l -d

B ls -l

C ls -x

D ls -F

E None of the above

ANS:A - ls -l -d

ls -l -d -> lists all the entries of the current directory where its options -l displays all the details in long format and -d lists the directory entries without contents.