Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 months 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
Catalina
4 days ago
You should definitely bring your own chair, just to be safe.
upvoted 0 times
...
...
Jules
2 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
Lawrence
5 days ago
That's a great idea, let's update the command to exclude /etc and /var.
upvoted 0 times
...
Mozell
5 days ago
Agreed, let's make sure to add that extra check to avoid copying any sensitive files.
upvoted 0 times
...
Susana
6 days ago
That's a good idea. We can modify the find command to include a check to skip any files in those directories.
upvoted 0 times
...
Annmarie
18 days ago
We can use the -path option in the find command to exclude those directories.
upvoted 0 times
...
Maryann
1 months 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
1 months ago
Good point, we should definitely add a check to skip files in /etc or /var.
upvoted 0 times
...
...
Lauran
2 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
2 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
Gwenn
9 days ago
Great, let's update the command to include -type f for copying the files.
upvoted 0 times
...
Jordan
10 days ago
I agree, adding -type f will ensure we only copy regular files owned by harry.
upvoted 0 times
...
Kenia
16 days ago
Yes, that's a good idea. Let's make sure to include that in the command.
upvoted 0 times
...
Scarlet
29 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
1 months 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
1 months 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
3 months ago
I agree, but I remember the command to find and copy files owned by harry.
upvoted 0 times
...
Celestina
3 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77