exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 38 discussion

Actual exam question from LPI's 010-160
Question #: 38
Topic #: 1
[All 010-160 Questions]

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?

  • A. /home/user/Documents/
  • B. /home/user/Documents/Downloads/
  • C. /home/user/Downloads/Documents/
  • D. /Documents/
  • E. /home/Documents
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jezd
Highly Voted 4 years ago
A is the correct answer. From the directory /home/user/Downloads/ ../Documents is /home/user/Documents
upvoted 36 times
...
harrymadgun
Highly Voted 4 years, 4 months ago
Shouldn't be A the right answer to this?
upvoted 20 times
...
Vslaugh
Most Recent 1 week ago
Selected Answer: A
Should be A
upvoted 2 times
...
AndrewGrasso
7 months, 3 weeks ago
Selected Answer: A
The ls command is used to list the contents of a directory. When run with the argument ../Documents/, it will list the contents of the Documents directory that is located one level up from the current directory /home/user/Downloads/. Therefore, if the Documents directory exists in /home/user/, then option A, /home/user/Documents/, is the correct answer.
upvoted 2 times
...
flavioamorim
9 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
josephrming
1 year ago
Selected Answer: A
A is definitely the right answer
upvoted 1 times
...
supergq
1 year, 1 month ago
Selected Answer: A
A is correct. The ".." changes into the child directory (i.e. /home/user), so "../Documents/" would list the contents of the /home/user/Documents directory.
upvoted 3 times
...
Dever24
1 year, 3 months ago
A is correct
upvoted 1 times
...
miurach
1 year, 4 months ago
I tested this on my own VPS and the option A is the correct one.
upvoted 1 times
...
Ness12
1 year, 7 months ago
A is the right answer. .. = means go one folder back
upvoted 1 times
...
KITELinz
1 year, 9 months ago
Selected Answer: A
Did the Exam today, picked A and got 100%.
upvoted 6 times
...
hughesd010
1 year, 10 months ago
Selected Answer: A
It seems to be an almost interpretive question. Looking at strict notation the "/Documents/", D, answer would indicate a root level directory called "Documents" as there are NO preceding characters indicating it is a subdirectory. Like missing context in a text message.
upvoted 1 times
...
Dor15
2 years, 2 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
Tanchwa
2 years, 3 months ago
Selected Answer: D
So this is a dumb question, really. /home/user/Documents and /Documents/ (assuming its a directory in the same location one up from /Downloads/) is the same location, no doubt about it. However, the question asks about a directory's contents specifically. Technically, A. is a path, not a directory. D would be right if we take this into consideration, but in real life A and D would get you what you wanted.
upvoted 1 times
...
Miragico
2 years, 3 months ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
stressedout7
2 years, 3 months ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
shosha
2 years, 4 months ago
Selected Answer: A
A is correct.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago