Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
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
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
...
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
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
Ashton
1 months agoCatalina
4 days agoJules
2 months agoLawrence
5 days agoMozell
5 days agoSusana
6 days agoAnnmarie
18 days agoMaryann
1 months agoAvery
1 months agoLauran
2 months agoArt
2 months agoGwenn
9 days agoJordan
10 days agoKenia
16 days agoScarlet
29 days agoTherese
2 months agoTruman
1 months agoRueben
1 months agoCelestina
2 months agoKimberlie
3 months agoCelestina
3 months ago