Linux Essentials (010-160) — Question 4
A user is currently in the directory /home/user/Downloads/ and runs the command ls ../Documents/
Assuming it exists, which directory's content is displayed?
Answer options
- A. /home/user/Documents/
- B. /home/user/Documents/Downloads/
- C. /home/user/Downloads/Documents/
- D. /Documents/
- E. /home/Documents
Correct answer: A
Explanation
The command ls ../Documents/ moves one level up from the current directory (/home/user/Downloads/) to /home/user/ and then accesses the Documents directory. Therefore, the contents of /home/user/Documents/ are displayed. The other options do not point to the correct directory structure relative to the current location.