Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
Answer: (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.
Latest EX200 Practice Questions with 111 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments