exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 64 discussion

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

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?

  • A. copy /etc /root
  • B. cp -r /etc/* /root
  • C. cp -v /etc/* /root
  • D. rcp /etc/* /root
  • E. cp -R /etc/*.* /root
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
044f354
3 months ago
Selected Answer: B
B is correct While cp-r and cp-R are both correct option for recursive copying, answer E is incorrect because the *.* pattern only matches files with a dot in their name, missing directories and other files without extensions. This would not accurately copy all contents.
upvoted 1 times
...
FM221228
2 years, 2 months ago
Both -R and -r are correct See: https://linux.die.net/man/1/cp
upvoted 1 times
FM221228
2 years, 2 months ago
And thus answer B is correct.
upvoted 3 times
...
...
beazzlebub
3 years, 4 months ago
B is the correct answer.
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 ...