Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
RedHat Discussions
Exam EX200 Topic 7 Question 108 Discussion
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
A
Explanation:
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
Show Suggested Answer
Hide Answer
Suggested Answer:
A
by
Bethanie
at
Feb 10, 2025, 11:37 AM
Limited Time Offer
25%
Off
Get Premium EX200 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Ashton
22 days agoJules
1 months agoAnnmarie
2 days agoMaryann
16 days agoAvery
20 days agoLauran
1 months agoArt
1 months agoScarlet
13 days agoTherese
2 months agoTruman
18 days agoRueben
21 days agoCelestina
2 months agoKimberlie
2 months agoCelestina
2 months ago