?
Which of the following commands is used to display the directory attributes rather than its contents?
Answer & Solution
Correct Answer:
Option
A
In Unix, the ls command is used to list directory contents. By using the -l option, it displays detailed information about the files and directories. Adding the -d option makes ls display the attributes of the directory itself rather than its contents.
So, ls -l -d is the correct command to display the directory attributes rather than its contents.
So, ls -l -d is the correct command to display the directory attributes rather than its contents.
Join the Discussion
Login to post a comment or share your explanation.
Login