Free EX200 Exam Braindumps (page: 3)

Page 2 of 35

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

  1. See Explanation section for answer.

Answer(s): A

Explanation:

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



SIMULATION
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done

OR

grep `abcde' /etc/testfile > /tmp/testfile



SIMULATION
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)



SIMULATION
Create a user named alex, and the user id should be 1234, and the password should be alex111.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

# useradd -u 1234 alex
# passwd alex
alex111
alex111

OR

echo alex111|passwd -stdin alex






Post your Comments and Discuss RedHat EX200 exam with other Community members: