RedHat EX200 Exam - Topic 3 Question 75 Discussion
1. Find all sizes of 10k file or directory under the /etc directory, and copy to /tmp/findfiles directory.2. Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
A) Explanation:
(1)find /etc -size 10k -exec cp {} /tmp/findfiles \;
(2)find / -user lucy -exec cp -a {} /tmp/findfiles \;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
Brock
8 months agoPaz
8 months agoBarrie
8 months agoOneida
8 months agoMarta
9 months agoBernardine
9 months agoCassi
9 months agoLaquita
9 months agoNettie
9 months agoYuette
9 months agoJody
9 months agoRemona
9 months agoAlline
9 months agoRaul
9 months agoJuliann
9 months agoChandra
9 months agoLenita
9 months agoCecilia
9 months agoCatina
1 year agoFidelia
1 year agoFidelia
1 year agoFidelia
1 year agoDarrin
1 year agoDoyle
1 year agoEric
1 year agoEric
1 year agoEric
1 year agoDelmy
1 year agoPa
1 year agoTruman
1 year agoDelmy
1 year agoClaribel
1 year agoOretha
1 year agoClaribel
1 year ago