EX200 Dumps

EX200 Free Practice Test

Red-Hat EX200: EX200 Red Hat Certified System Administrator (RHCSA) Exam

QUESTION 41

Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Solution:
below
EX200 dumps exhibit iptables -F
EX200 dumps exhibit service iptables save
EX200 dumps exhibit iptables -A INPUT -s 172.25.0.0/16 -j REJECT
EX200 dumps exhibit service iptables save
EX200 dumps exhibit service iptables restart

Does this meet the goal?

Correct Answer: A

QUESTION 42

Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.
Solution:
# chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40

Does this meet the goal?

Correct Answer: A

QUESTION 43

Locate all the files owned by ira and copy them to the / root/findresults directory.
Solution:
# find / -user ira > /root/findresults (if /root/findfiles is a file)
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults; [ if /root/findfiles is a directory] ls /root/findresults

Does this meet the goal?

Correct Answer: A

QUESTION 44

Create a volume group, and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M.
Solution:
# fdisk
# partprobe
# pvcreate /dev/vda6
# vgcreate -s 8M vg1 /dev/vda6 -s
# lvcreate -n lvshare -l 50 vg1 -l
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab
/dev/vg1/lvshare /mnt/data ext4 defaults 0 0
# mount -a
# df -h

Does this meet the goal?

Correct Answer: A

QUESTION 45

Find all lines in the file /usr/share/dict/words that contain the string seismic. Put a copy of all these lines in their original order in the file /root/wordlist. /root/wordlist should contain no empty lines and all lines must be exact copies of the original lines in /usr/share/dict/words.
Solution:
grep seismic /usr/share/dict/words> /root/wordlist

Does this meet the goal?

Correct Answer: A