Examveda
Examveda

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.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix