Multiple choice technology operating systems

which of the following command shows ALL the content of a directory in unix/GNUlinux

  1. ls -l

  2. ls

  3. ls -a

  4. dir

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

The ls -a command lists all contents of a directory, including hidden files (those starting with a dot). The plain ls and ls -l commands hide these files by default. dir is a Windows command, though sometimes aliased, but not the standard Unix utility for hidden files.