Multiple choice technology operating systems

Which command is used to display all the files?

  1. ls

  2. cat

  3. ls -a

  4. type

  5. dir

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

ls -a lists all files including hidden files (those starting with .). ls alone only shows non-hidden files, cat displays file contents, type shows command type, dir is an alias for ls.