Q24
Which of the following commands is used to list contents of directories?
A.
ls
AnswerB.
lp
C.
dir
D.
tar
E.
None of the above
Answer: Option A
Solution
Answer: Option A
Solution:
In Unix, the ls command is used to list the contents of directories. It displays the names of files and directories in the specified directory.So, ls is the correct command to list contents of directories.