The correct answer is: A. ls -l -d
The ls
command is used to list the contents of a directory. The -l
option tells ls
to list the files in long format, which includes the file’s permissions, owner, group, size, and modification time. The -d
option tells ls
to list the directory itself, rather than its contents.
The other options are incorrect because they do not list the directory attributes rather than its contents. Option B, ls -l
, lists the files in long format, but it also includes the file’s contents. Option C, ls -x
, lists the files in extended format, which includes information about the file’s security attributes. Option D, ls -F
, lists the files with a different character for each type of file. Option E, None of the above, is incorrect because one of the options is correct.