SIMULATIONFind the files owned by harry, and copy it to catalog: /opt/dir
Answer(s): A
# cd /opt/# mkdir dir# find / -user harry -exec cp -rfp {} /opt/dir/ \;
SIMULATIONFind 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.
# cat /etc/testfile | while read line;doecho $line | grep abcde | tee -a /tmp/testfiledoneORgrep `abcde' /etc/testfile > /tmp/testfile
SIMULATIONCreate a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
# fdisk /dev/sdap(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+2GtlWpartx -a /dev/sdapartprobemkswap /dev/sda8Copy UUIDswapon -avim /etc/fstabUUID=XXXXX swap swap defaults 0 0(swapon -s)
SIMULATIONCreate a user named alex, and the user id should be 1234, and the password should be alex111.
# useradd -u 1234 alex# passwd alexalex111alex111ORecho alex111|passwd -stdin alex
Post your Comments and Discuss RedHat EX200 exam with other Community members:
chukwuemeka ubajaka commented on May 17, 2022 Can't i get redhat 8 version of the questions instead of the redhat 6 version, as the syntax of redhat 8 and 6 is not the same. UNITED STATES upvote
Sandeep commented on March 19, 2021 Zabar Dast! So accurate and so real. Passed my exam lasat week. INDIA upvote
Dan commented on December 16, 2019 How do i print the pdf download, its password protected. I want to print the file and study before the exam in couple days Anonymous upvote
Carlo Shamany commented on July 17, 2019 good havent taken the test but feel confident. UNITED STATES upvote