QuestionQ3

Finding Your Way on a Linux System

A user is in the directory /home/user/Downloads/ and runs the command ls ../Documents/.

Assuming that it exists, which directory’s contents are displayed?

  • A /home/user/Documents/
  • B /home/user/Documents/Downloads/
  • C /home/user/Downloads/Documents/
  • D /Documents/
  • E /home/Documents
Explanation

.. refers to the parent of /home/user/Downloads/, which is /home/user/. Therefore, ../Documents/ resolves to /home/user/Documents/.

Community Discussion

No comments yet. Be the first to start the discussion!