Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
Location Chicago IL, USA

Exam EX200 topic 1 question 4 discussion

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

SIMULATION -
Find the files owned by harry, and copy it to catalog: /opt/dir

Show Suggested Answer Hide Answer

Suggested Answer: See explanation below.
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;

Comments

airphreak
Highly Voted 3 months, 2 weeks ago
find / -user Harry -type f -exec cp {} /opt/dir \;
upvoted 5 times
...
rick_rick
Most Recent 6 days, 3 hours ago
c=$(find / -type f -user harry) | cp -rfp $c /opt/dir c is a variable which store the output of the find command and the copy the content of the c variable using cp command
upvoted 1 times
...
ms200
1 week, 6 days ago
find / -user harry -type f -exec cp -rfp {} /opt/dir \;
upvoted 1 times
...
gianniv_71
3 months, 2 weeks ago
if you've strike on keyboard to find the {} chars, find / -user Harry | while read FILE do cp -p $FILE /opt/dir done
upvoted 1 times
...
ola12
3 months, 3 weeks ago
Find / -user harry > /opt/dir
upvoted 1 times
AlekZandre
2 months, 1 week ago
it's not working
upvoted 1 times
...
...
RedQuasar
4 months ago
find / -user Harry > /opt/dir
upvoted 1 times
AlekZandre
2 months, 1 week ago
it's not working
upvoted 1 times
...
...

SaveCancel