PrepAway - Latest Free Exam Questions & Answers

CORRECT TEXT Find the files owned by harry, and copy it to catalog: /opt/dir

CORRECT TEXT
Find the files owned by harry, and copy it to catalog: /opt/dir

PrepAway - Latest Free Exam Questions & Answers

Answer: A

Explanation:
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;

4 Comments on “CORRECT TEXT Find the files owned by harry, and copy it to catalog: /opt/dir

  1. Romio says:

    In case someone doesn’t understand this, I would like to leave an explanation.
    find: find command
    where in root : /
    how, files owned by a user: -user
    name of user: harry
    execute : -exec
    copy: cp
    results of previous command will go in {} so these brackets are just symbols that whatever result came from previous command will be copied now
    path of destination : /opt/dir
    end of line : \;




    5



    2

Leave a Reply