Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat Exam EX200 Topic 7 Question 108 Discussion

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

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Ashton
22 days ago
This is a solid solution, but I'm wondering if I should bring my own chair to the exam room. These tests can be a real pain in the butt.
upvoted 0 times
...
Jules
1 months ago
Looks good, but I'm a little worried about the potential for copying sensitive files. Maybe we should add a check to skip any files in /etc or /var.
upvoted 0 times
Annmarie
2 days ago
We can use the -path option in the find command to exclude those directories.
upvoted 0 times
...
Maryann
16 days ago
Good point, we definitely don't want to copy sensitive files. We can add a condition to exclude /etc and /var directories.
upvoted 0 times
...
Avery
20 days ago
Good point, we should definitely add a check to skip files in /etc or /var.
upvoted 0 times
...
...
Lauran
1 months ago
This is a great solution, but I wonder if there's a way to do it without using the root directory. Maybe we could start the search from /home/harry instead?
upvoted 0 times
...
Art
1 months ago
I like the use of find and exec to copy the files, but shouldn't we use -type f to only copy regular files?
upvoted 0 times
Scarlet
13 days ago
Good point, we should definitely add -type f to only copy regular files.
upvoted 0 times
...
...
Therese
2 months ago
This looks like the right solution, but I'm not sure about the -rfp flags. Are they necessary?
upvoted 0 times
Truman
18 days ago
You can try running the command without the flags and see if it works, but it's recommended to include them for proper file copying.
upvoted 0 times
...
Rueben
21 days ago
Yes, the -rfp flags are necessary to preserve the file permissions and copy recursively.
upvoted 0 times
...
...
Celestina
2 months ago
Yes, we need to use 'find' command with '-user harry' option and then 'cp' command to copy the files to /opt/dir.
upvoted 0 times
...
Kimberlie
2 months ago
I agree, but I remember the command to find and copy files owned by harry.
upvoted 0 times
...
Celestina
2 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel