exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 108 discussion

Actual exam question from RedHat's EX200
Question #: 108
Topic #: 1
[All EX200 Questions]

SIMULATION -
Locate all the files owned by ira and copy them to the / root/findresults directory.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# find / -user ira > /root/findresults (if /root/findfiles is a file)
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults\; [ if /root/findfiles is a directory] ls /root/findresults

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
docoumn
2 months, 4 weeks ago
find / -user ira -type f -exec cp {} /root/findfiles \
upvoted 1 times
...
mattd81
2 years, 5 months ago
find / -user ira -type f -exec cp {} /root/findfiles \;
upvoted 4 times
...
Stachomir
3 years, 4 months ago
cp -rp $(find / -user ira -type f) /root/findfiles
upvoted 3 times
STFN2019
3 years, 2 months ago
Thx Stachomir, that's really helpful
upvoted 1 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 ...