exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 23 discussion

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

Which of the following commands will search for the file foo.txt under the directory /home?

  • A. search /home -file foo.txt
  • B. search /home foo. txt
  • C. find /home - file foo.txt
  • D. find /home -name foo.txt
  • E. find /home foo.txt
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
WaldoWhereAmI
Highly Voted 3 years, 6 months ago
Should be: find /home —name foo.txt the "" should be — (single dash)
upvoted 31 times
STFN2019
2 years, 1 month ago
In fact if you're on the home dir then all you need is: find -name foo.txt
upvoted 1 times
...
...
sasquatchshrimp
Highly Voted 2 years, 9 months ago
This is correct, I verified it on centos. Proper syntax is "find /home -name foo.txt"
upvoted 7 times
...
ahenriquez02
Most Recent 8 months, 3 weeks ago
D find /home/ - name foo.txt
upvoted 3 times
...
Vovanich
8 months, 4 weeks ago
Selected Answer: D
D. find /home ג€"name foo.txt
upvoted 1 times
...
Router
10 months, 1 week ago
the command should be find /home search foo.txt
upvoted 1 times
...
linvidia
10 months, 3 weeks ago
Selected Answer: D
The syntax is: find /home -name foo.txt
upvoted 2 times
...
mason64
2 years, 10 months ago
that command didnt work for me.
upvoted 1 times
...
emartin1967
3 years ago
I tried it without quotes or dashes, and it worked.
upvoted 2 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