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

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

Answer: A

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



Leave a Reply 7

Your email address will not be published. Required fields are marked *


steven kunjachan

steven kunjachan

find / – user harry -exec cp -rfp {} /opt/dir/ \;

steven kunjachan

steven kunjachan

mkdir /opt/dir (this goes first obviously)

Romio

Romio

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 : \;

Jacob Miles

Jacob Miles

this command should work also:

find / -user harry | xargs cp -t /opt/dir/

Sidney Doffe

Sidney Doffe

Red Hat EX200 Passing Tips FYI:

As we all konw, the Red Hat EX200 has been updated from version 6 to version 7 NOW. There are MANY new topics in the RHEL 7 EX200 exam: the COMMANDS like NMCLI and so on.

Difference between RHEL 7 EX200 exam and RHEL 6 EX200 exam FYI:

1. systemctl VS init
2. journalctl in combination with syslog
3. gdisk VS fdisk
4. firewalld VS iptables
…etc.

When preparing for the Red Hat EX200 exam, I suggest you:

1. DO NOT only learn the RHEL 6 study materials, read the RHEL 7 study materials as much as possible.

2. Pay close attention to these objects:
(a) Configure a default software repository for your system
(b) Adjust the size of the Logical Volume
(c) Configure /var/tmp/fstab Permission
(d) Configure a cron Task
(e) Create a Shared Directory
(f) Configure NTP
(g) Add a swap partition
(h) Search files and string
(i) Create a logical volume

3. Reading the Red Hat official EX200 study guide carefully and deeply.

4. Recommend to learn the newest Red Hat EX200 dumps from passleader.com, here you can get FREE version of new passleader EX200 dumps (108 Actual Labs) on Google Drive:

https://drive.google.com/open?id=0B-ob6L_QjGLpM1FIWmJ5UlRHZVE

GOOD LUCK!!!