Multiple choice general knowledge science & technology

What is the command in UNIX to show a directory listing

  1. dir

  2. who

  3. ls

  4. pwd

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

The 'ls' command (list) shows directory contents in UNIX/Linux. 'dir' is the MS-DOS/Windows equivalent, 'who' shows logged-in users, and 'pwd' (print working directory) shows the current directory path.