Bird
Raised Fist0

Given this folder structure:

medium📝 Analysis Q4 of Q15
Intro to Computing - How Files and Folders Organize Data
Given this folder structure:
root/
├── folder1/
│ └── fileA.txt
└── folder2/
└── fileB.txt

What is the absolute path to fileB.txt in a Unix system?
A/folder2/fileB.txt
B/root/folder2/fileB.txt
Croot/folder2/fileB.txt
D/root/folder1/fileB.txt
Step-by-Step Solution
Solution:
  1. Step 1: Understand the root folder

    The root folder is named 'root' here, so path starts with '/root'.
  2. Step 2: Trace path to fileB.txt

    fileB.txt is inside folder2, which is inside root, so path is '/root/folder2/fileB.txt'.
  3. Final Answer:

    /root/folder2/fileB.txt -> Option B
  4. Quick Check:

    Absolute path includes all folders from root [OK]
Quick Trick: Start from root, follow folders to file [OK]
Common Mistakes:
MISTAKES
  • Omitting root folder
  • Confusing folder1 and folder2
  • Using relative path instead of absolute

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes