ExamVeda
Login
Home
This question belongs to Computer Science Unix
Unix
?

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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.