Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jezd
Highly Voted 3 years, 11 months ago
A is the correct answer. From the directory /home/user/Downloads/ ../Documents is /home/user/Documents
upvoted 34 times
...
harrymadgun
Highly Voted 4 years, 2 months ago
Shouldn't be A the right answer to this?
upvoted 19 times
...
AndrewGrasso
Most Recent 6 months 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
7 months, 2 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
josephrming
10 months, 3 weeks ago
Selected Answer: A
A is definitely the right answer
upvoted 1 times
...
supergq
11 months, 3 weeks 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 2 times
...
Dever24
1 year, 2 months ago
A is correct
upvoted 1 times
...
miurach
1 year, 3 months ago
I tested this on my own VPS and the option A is the correct one.
upvoted 1 times
...
Ness12
1 year, 5 months ago
A is the right answer. .. = means go one folder back
upvoted 1 times
...
KITELinz
1 year, 7 months ago
Selected Answer: A
Did the Exam today, picked A and got 100%.
upvoted 6 times
...
hughesd010
1 year, 8 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 ago
Selected Answer: A
A is correct
upvoted 1 times
...
Tanchwa
2 years, 1 month 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, 1 month ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
stressedout7
2 years, 1 month ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
shosha
2 years, 3 months ago
Selected Answer: A
A is correct.
upvoted 3 times
...
JRossJ
2 years, 7 months ago
I just recreated this exact scenario on my Linux machine today 9/3/2021 and it is 100% confirmed that the command "ls ../Documents/" returns the contents of "home/user/Documents" So, A would be the correct answer. 100% confirmed.
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 ...