Multiple choice technology programming languages

How do you list all the files that are in the current directory?

  1. list all

  2. ls -full

  3. ls -a

  4. ls -all

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

The Unix command ls -a lists all files and directories in the current directory, including hidden files starting with a period. Other options like list all, ls -full, and ls -all are syntax errors and not valid command flags.