Bird
0
0

Which of the following is the correct syntax to display the current directory path in Linux?

easy📝 Syntax Q12 of 15
Linux CLI - Navigating the File System
Which of the following is the correct syntax to display the current directory path in Linux?
Apwd
Bpwd -l
Cprintwd
Dshowdir
Step-by-Step Solution
Solution:
  1. Step 1: Identify the standard command

    The standard command to print the current directory is exactly pwd without any extra letters or options.
  2. Step 2: Check other options for validity

    Options B, C, and D are not valid Linux commands for this purpose. pwd -l is not a standard option, and printwd and showdir do not exist.
  3. Final Answer:

    pwd -> Option A
  4. Quick Check:

    Correct syntax = pwd [OK]
Quick Trick: Type exactly 'pwd' to print current directory [OK]
Common Mistakes:
  • Adding wrong options like -l
  • Using non-existent commands
  • Confusing with print working directory spelled out

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes