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?

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!