Bird
0
0

You want to write a script that prints the current directory path and then creates a new folder named backup inside it. Which sequence of commands is correct?

hard📝 Application Q8 of 15
Linux CLI - Navigating the File System
You want to write a script that prints the current directory path and then creates a new folder named backup inside it. Which sequence of commands is correct?
Amkdir backup pwd
Bpwd backup mkdir
Cpwd mkdir backup
Dmkdir pwd backup
Step-by-Step Solution
Solution:
  1. Step 1: Print current directory path

    Use pwd alone to print the current directory.
  2. Step 2: Create new folder inside current directory

    Use mkdir backup to create a folder named backup in the current directory.
  3. Final Answer:

    pwd mkdir backup -> Option C
  4. Quick Check:

    Print path first, then create folder [OK]
Quick Trick: Run pwd first, then mkdir folder inside current directory [OK]
Common Mistakes:
MISTAKES
  • Using pwd with arguments
  • Running mkdir without folder name
  • Reversing command order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes