Vidyalelo
Computer Science · Q24

UNIX

Engineering and GATE · Computer Science · question 24

Q24

Which of the following commands is used to list contents of directories?

A.
ls
Answer
B.
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.