New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX200 Exam - 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:

0/2000 characters
Crista
3 months ago
Good point, but it’s a solid way to get the job done!
upvoted 0 times
...
Shawnee
3 months ago
Just a heads up, you might need sudo for that.
upvoted 0 times
...
James
3 months ago
Wait, does that really copy all files? Seems risky!
upvoted 0 times
...
Vi
4 months ago
Agree, but be careful with `-exec cp`—it can overwrite files.
upvoted 0 times
...
Janey
4 months ago
That's the right command to find files owned by harry!
upvoted 0 times
...
Angelo
4 months ago
I recall that using `-user` with `find` is the right approach, but I wonder if I should specify the full path for `cp` to avoid any issues.
upvoted 0 times
...
Tracie
4 months ago
I feel confident about using `mkdir` to create the directory, but I’m not sure if I need to include `-rfp` in the `cp` command.
upvoted 0 times
...
Stephaine
4 months ago
I practiced a similar question where we had to find files by size. I think the `-exec` option is correct, but I might have mixed up the flags for `cp`.
upvoted 0 times
...
Truman
5 months ago
I think I remember that the `find` command is used to search for files, but I'm not entirely sure about the syntax for copying them.
upvoted 0 times
...
Thomasena
5 months ago
This seems like a good opportunity to demonstrate my Linux skills. I'll give it my best shot.
upvoted 0 times
...
Solange
5 months ago
Wait, do I need to create the /opt/dir directory first? I'm not totally clear on that.
upvoted 0 times
...
Emelda
5 months ago
Okay, the key is to find the files owned by harry and copy them to the /opt/dir directory. I've got this!
upvoted 0 times
...
Malissa
5 months ago
Hmm, I'm a bit unsure about the find command and the -exec option. I'll need to review that part.
upvoted 0 times
...
Erick
5 months ago
This looks straightforward, I think I can handle it.
upvoted 0 times
...
Ashton
10 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
Elsa
8 months ago
I never thought about bringing my own chair, but it's a good idea.
upvoted 0 times
...
Tonja
8 months ago
I always bring a cushion to exams, it helps with the discomfort.
upvoted 0 times
...
Catalina
8 months ago
You should definitely bring your own chair, just to be safe.
upvoted 0 times
...
...
Jules
10 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
8 months ago
That's a great idea, let's update the command to exclude /etc and /var.
upvoted 0 times
...
Mozell
8 months ago
Agreed, let's make sure to add that extra check to avoid copying any sensitive files.
upvoted 0 times
...
Susana
8 months 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
9 months ago
We can use the -path option in the find command to exclude those directories.
upvoted 0 times
...
Maryann
9 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
9 months ago
Good point, we should definitely add a check to skip files in /etc or /var.
upvoted 0 times
...
...
Lauran
10 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
10 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 months ago
Great, let's update the command to include -type f for copying the files.
upvoted 0 times
...
Jordan
9 months ago
I agree, adding -type f will ensure we only copy regular files owned by harry.
upvoted 0 times
...
Kenia
9 months ago
Yes, that's a good idea. Let's make sure to include that in the command.
upvoted 0 times
...
Scarlet
9 months ago
Good point, we should definitely add -type f to only copy regular files.
upvoted 0 times
...
...
Therese
10 months ago
This looks like the right solution, but I'm not sure about the -rfp flags. Are they necessary?
upvoted 0 times
Truman
9 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
10 months ago
Yes, the -rfp flags are necessary to preserve the file permissions and copy recursively.
upvoted 0 times
...
...
Celestina
11 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
11 months ago
I agree, but I remember the command to find and copy files owned by harry.
upvoted 0 times
...
Celestina
11 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel