Multiple choice unix

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

  1. ls

  2. lp

  3. dir

  4. tar

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ls (list) is the standard UNIX command to display directory contents. lp prints files, dir is not standard UNIX (DOS command), tar archives files.