Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 14

Question 3 — AZ-104 Practice Exam 14

You need to list all files in /etc, including hidden ones, and display them in long format. Which command achieves this in the most concise way? (Select one answer)

  1. ls -al /etc

  2. ls /etc

  3. ls --help

  4. ls -a -l /etc

Correct answers

  1. ls -al /etc

Explanations

Correct:
ls -al /etc: Combines -a and -l flags concisely to show all files, including hidden ones, in long format.

Wrong:
ls -a -l /etc: This works but isn’t the most concise option.
ls /etc: Lists files but omits hidden files and long format.
ls --help: Displays help, not directory contents.