Multiple choice technology

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

  1. list all

  2. ls -full

  3. ls -a

  4. ls a

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

The 'ls -a' command lists all files in the current directory, including hidden files (those starting with a dot). The '-a' flag means 'all'. Options like 'list all', 'ls -full', and 'ls a' are not valid ls commands. The ls command is the standard Unix/Linux directory listing utility.