Which of the following commands is used to list contents of directories?
A. ls
B. lp
C. dir
D. tar
E. None of the above
Answer: Option A
Solution (By Examveda Team)
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.

Join The Discussion