Bird
0
0

Which command correctly prints the absolute path of the current directory in Linux?

easy📝 Syntax Q3 of 15
Linux CLI - Navigating the File System
Which command correctly prints the absolute path of the current directory in Linux?
Aprintwd
Bpwd
Ccwd
Ddirpath
Step-by-Step Solution
Solution:
  1. Step 1: Identify the standard command

    The standard Linux command to print the current directory is pwd.
  2. Step 2: Verify other options

    printwd, cwd, and dirpath are not valid Linux commands.
  3. Final Answer:

    pwd -> Option B
  4. Quick Check:

    Try pwd in terminal [OK]
Quick Trick: pwd is the only valid command to print working directory [OK]
Common Mistakes:
  • Assuming cwd or dirpath are valid commands
  • Typing printwd instead of pwd

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes