CompTIA A+ Core 2 (220-1102) — Question 262

Which of the following ls command options is used to display hidden files and directories?

Answer options

Correct answer: A

Explanation

The -a option for the ls command is specifically used to include hidden files and directories in the output. The -s option displays file sizes, -lh provides a human-readable format of file sizes, and -t sorts files by modification time, none of which reveal hidden files.