Bird
0
0

Which of the following is the correct syntax to specify an absolute path to the file config.yaml located in the /etc directory?

easy📝 Syntax Q3 of 15
Linux CLI - Navigating the File System
Which of the following is the correct syntax to specify an absolute path to the file config.yaml located in the /etc directory?
A/etc/config.yaml
Betc/config.yaml
C~/etc/config.yaml
D./etc/config.yaml
Step-by-Step Solution
Solution:
  1. Step 1: Recognize absolute path syntax

    Absolute paths start with '/' indicating root directory.
  2. Step 2: Match path to file location

    The file is in /etc, so the path is '/etc/config.yaml'.
  3. Final Answer:

    /etc/config.yaml -> Option A
  4. Quick Check:

    Absolute path starts with '/' [OK]
Quick Trick: Absolute paths always start with '/' [OK]
Common Mistakes:
  • Omitting leading '/' for absolute path
  • Using '~' which is home directory
  • Using relative path syntax for absolute paths

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes