EX200 Exam - 题目+答案+网友评论
EX200 Exam - 题目+答案+网友评论
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 1/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #1 Topic 1
SIMULATION -
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24 -
Gateway172.24.40.1 -
DNS:172.24.40.1 -
# cd /etc/syscofig/network-scripts/
# ls
GATEWAY=172.24.40.1 -
DNS1=172.24.40.1 -
# vim /etc/sysconfig/network
HOSTNAME= station.domain40.example.com
OR -
Graphical Interfaces:
#cd /etc/sysconfig/network-scripts/
#ls
#vi ifcfg-eth0
IPADDR=172.24.40.40
PREFIX=24
GATEWAY=172.24.40.1
DNS1=172.24.40.1
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 2/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 3/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
root]#
root]# cat /etc/hostname
root]# nmcli connection add con-name MyExam ifname ens224 type ethernet ipv4.addresses 172.24.40.50/24 ipv4.gateway 172.24.40.1
root]#
root]#nmcli connection modify MyExam ipv4.dns 172.24.40.1
root]#
root]# nmcli connection modify MyExam ipv4.method manual
root]#
root]# nmcli connection up MyExam
root]#
root]# nmcli device
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 4/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #2 Topic 1
SIMULATION -
The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom's login shell should be non-interactive.
# cat /etc/passwd
OR -
# system-config-users
RHEL 9.1
[root@server9 ~]#
[root@server9 ~]#groupadd admin
[root@server9 ~]#
[root@server9 ~]# useradd harry -G admin
[root@server9 ~]# useradd natasha -G admin
[root@server9 ~]#
[root@server9 ~]# useradd -s /sbin/nologin tom
[root@server9 ~]#
upvoted 5 times
apart from the shell /sbin/nologin, which other is mostly use for user
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 5/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 6/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #3 Topic 1
SIMULATION -
Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write,
while other users are not allowed to access it. The files created by users from the same group should also be the admin group.
# cd /home/
# mkdir admins /
If the group should only have read and write shouldn't the command be:
chmod 760 /admins
upvoted 12 times
#mkdir /home/admins
#groupadd admin
#chown root:admin /admins
#chmod 770 /admins
#chmod g+s
upvoted 10 times
I passed the RHSCA exam last week. This dump was useful but needs update for questions on writing simple shell scripts, container, Stratis and
VDO. Thanks. Also, I think Redhat has increased the number of questions from 20 - 24. Mine were 24 questions on the exam. Thanks.
https://medium.com/@darekhale91/latest-redhat-ex200-exam-dumps-2023-acd1c1922729
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 7/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
mkdir admins
groupadd admin
chown :admin /home/admins
chmod g+rw /home/admins
chmod o-rwx /home/admins
chmod g+s /homeadmins
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 8/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #4 Topic 1
SIMULATION -
Configure a task: plan to run echo hello command at 14:23 every day.
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 9/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
crontab -u mary -e
23 14 * * * echo "Hello World."
upvoted 7 times
vim /etc/crontab
23 14 * * * echo "hello "
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 10/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #5 Topic 1
SIMULATION -
# cd /opt/
# mkdir dir
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 11/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 12/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #6 Topic 1
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.
do
done
OR -
In case that content of destination file should not be replaced, following command will work:
cat /etc/testfile | while read line; do echo $line | grep abcde | tee -a /tmp/testfile; done
There is missing ";" in "correct answer" here, so the command from there will work if you will copy paste it but if you need to write it on your own,
you must add the ";" or use bash script!
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 13/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 14/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #7 Topic 1
SIMULATION -
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
# fdisk /dev/sda
(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
W-
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID -
swapon -a
vim /etc/fstab
(swapon -s)
# swapon -a
upvoted 6 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 15/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 16/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #8 Topic 1
SIMULATION -
Create a user named alex, and the user id should be 1234, and the password should be alex111.
# passwd alex
alex111
alex111
OR -
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 17/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Question #9 Topic 1
SIMULATION -
Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing
file server.)
# cd /etc/yum.repos.d
# vim local.repo
[local]
name=local.repo
baseurl=file:///mnt
enabled=1
gpgcheck=0
# yum makecache
# chkconfig vsftpd on
# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
Are you guys certain that this isn't a question asking you to configure a local YUM repo? If so, the first half of the solution is correct (except for the
base URL):
# cd /etc/yum.repos.d
# vim local.repo
[local] (can be any name in brackets)
name=local.repo (any name you want)
baseurl=/var/ftp/pub (local repo's network location)
enabled=1 (duh, enabled)
gpgcheck=0 (doesn't perform check)
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 18/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
http://station.domain40.example.com.
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
<VirtualHost 192.168.0.254:80>
DocumentRoot /var/www/html/
ServerName station.domain40.example.com
</VirtualHost>
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 19/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure the verification mode of your host account and the password as LDAP. And it can login successfully through ldapuser40. The password
is set as
"password". And the certificate can be downloaded from http://ip/dir/ldap.crt. After the user logs on the user has no host directory unless you
system-config-authentication
OR -
# system-config-authentication
3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 4.Download CA Certificate
6.Apply
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 20/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
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.
# chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
* -rw,soft,intr 172.16.40.10:/rhome/&
# showmount -e 172.24.40.10
# su - ladpuser40
Something like :
vi /etc/auto.master
/rhome/ldapuser40 /etc/auto.examtopic
vi /etc/auto.examtopic
ldapdir 172.24.40.10:/rhome/ldapuser40
mount
upvoted 4 times
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 22/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Graphical Interfaces:
OR -
# system-config-date
FOR RHEL8:
sudo yum -y install chrony
$ sudo vi /etc/chrony.conf
server 192.168.25.3
sudo timedatectl set-ntp true
sudo systemctl enable --now chronyd
upvoted 19 times
Do you guys this "Configure the system synchronous as 172.24.40.10." This is a incomplete question statement?
upvoted 2 times
timedatectl status
##check if NTP service is not active
timedatectl set-ntp true
systemctl enable --now chronyd.service
##check status of chrony sync
chronyc sources -v
upvoted 4 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 23/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 24/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This
# vgdisplay
(Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend)
# resize2fs /dev/vg2/lv2
mount -a
(Verify)
-------------------------------------------------------------------------------
(Decrease lvm)
# umount /media
# fsck -f /dev/vg2/lv2
# mount -a
# lvdisplay (Verify)
OR -
# e2fsck -f /dev/vg1/lvm02
# resize2fs -f /dev/vg1/lvm02
# lvreduce -L 1G -n /dev/vg1/lvm02
# lvdisplay (Verify)
check details of lv
#lvdisplay
#lvextend -L 230MB /dev/(vg)/vo
#resizes2fs , if using xfs (xfs_growfs)
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 25/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file
# lvcreate -l 50 -n lvm02
# mkfs.ext4 /dev/vg1/lvm02
# blkid /dev/vg1/lv1
# vim /etc/fstab
# mkdir -p /mnt/data
# vim /etc/fstab
# mount -a
# mount
(Verify)
ERRATA:
vgcreate -s 16M vg01 /dev/sda1 /dev/sda2
lvcreate -l 50 -n lv01 vg01
mkfs.ext4 /dev/mapper/vg01_lv01
lsblk -pf (UUID=dde8c40f-fa74-4290-8ff9-252c614e8307)
echo “UUID=dde8c40f-fa74-4290-8ff9-252c614e8307 /mnt/data xfs defaults 0 0” >> /etc/fstab
upvoted 7 times
#
upvoted 1 times
#pvcreate /dev/sdb{2,3}
#pvdisplay /dev/sdb* (verify)
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 27/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
volume neither..
upvoted 5 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 28/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.
# cat /etc/grub.conf
# cd /boot
# lftp it
# get dr/dom/kernel-xxxx.rpm
# vim /etc/grub.conf
default=0
To update Kernel:
#rpm -ivh [kernel.rmp] --> Install a rpm package in verbose mode
OR
#yum install kernel --> (If you're using repositories)
It's important to know that this doesn't replace the actual kernel. It is installed along the actual kernel and you can select any available kernel to
boot the system in case of troubleshooting.
Also, the system onlny saves a maximum of 4 kernels. If you already have 4, and install a 5th kernel, this one will replace the oldest kernel.
-----------
To set a default kernel:
- We can use grubby command tool.
#grubby --default-kernel --> Get default kernel (It's probably that the latest installed be selected)
#grubby --info=ALL | grep ^kernel --> This command list all kernel paths for the available kernels.
#grubby --set-default=[kernel path obtained from the above command]
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 29/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take effect automatically at boot-start.
# fdisk /dev/vda
+512M
# partprobe /dev/vda
# mkdir -p /data
# vim /etc/fstab
# mount -a
#sudo su
#lsblk -psf (to check for empty disk)
#fdisk /dev/sd[] (format disk in question)
#n (new partition)
#p (for primary)
#Enter (use the first sector by default)
#+size 512M (to specify the size)
#Enter
#w (to write the changes)
#lsblk -psf(to verify partition has been created)
#mkfs.ext4 /dev/sd[]1 (to format the partition with ext4 file system)
#mkdir /mnt/data (to create the mount point)
#lsblk -psf (to show the UUID for the newly created file system)
#echo 'UUID=XXX /mnt/data ext4 defaults 0 0' >> /etc/fstab
#systemctl daemon-reload
#mount -a
upvoted 3 times
Job done!
upvoted 4 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 31/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
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.
# fdisk
# partprobe
# pvcreate /dev/vda6
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab
# mount -a
# df -h
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 32/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
And the size of the floating range should set between 380M and 400M
upvoted 2 times
SIMULATION -
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at
boot-start.
# mkdir -p /media/cdrom
# vim /etc/fstab
# mount -a
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 33/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
to verify:
grep 600 /etc/group
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 34/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Password: redhat -
# passwd user1
redhat
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 35/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The Additional group of the two users: user2, user3 is the admin group Password: redhat
# passwd user2
redhat
# passwd user3
redhat
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 36/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 37/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
# cp /etc/fstab /var/tmp/
# ls -l
# cp /etc/fstab /var/tmp/
# setfacl -m u:user1:rw- /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
upvoted 12 times
useradd -M user1
useradd -M user2
cp /etc/fstab /vat/tmp/
setfacl -m u:user1:rw- /var/tmp/fstab
setfacl -m u:user2:--- /vat/tmp/fstab
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 38/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
upvoted 3 times
SIMULATION -
Configure a task: plan to run echo "file" command at 14:23 every day.
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"
Configure a task: plan to run echo "file" command at 14:23 every day.
question never say run echo " file" in natasha user. please confirm i have to take exam next month.
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 39/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.
Yumcleanall -
Yumrepolist -
Almost 4305 packages are right, Wrong Yum Configuration will lead to some following questions cannot be worked out.
#dnf repolist
#cd /etc/yum.repos.d
#vi local-rhel8.repo
[LocalRepo_BaseOS]
name=LocalRepo_BaseOS
metadata_expire=-1
enabled=1
gpgcheck=0
baseurl=http://server.domain11.example.com/pub/ x86_64/Server/BaseOS/
[LocalRepo_AppStream]
name=LocalRepo_AppStream
enabled=1
gpgcheck=0
baseurl=http://server.domain11.example.com/pub/ x86_64/Server/AppStream/
???
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 40/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
upvoted 1 times
SIMULATION -
Adjust the size of the vo Logical Volume, its file system size should be 290M. Make sure that the content of this system is complete.
Note: the partition size is rarely accurate to the same size as required, so in the range 270M to 320M is acceptable.
Addition -
df -hT
Lvscan -
xfs_growfs /home/ //home is the mounted directory of the LVM, this step just need to do in the practice environment, and test EXT4 does not
need this step. resize2fs /dev/vg0/vo// use this command to update in examination. df -hT
OR -
Subtraction -
e2fsck -f/dev/vg0/vo
umount /home
resize2fs /dev/vg0/vo // the final required partition capacity is 100M lvreduce -l 100M /dev/vg0/vo mount /dev/vg0/vo/home df -hT
rhel8
umount /dev/mapper/my_vol2-lvshare /mnt/data
lvreduce -r -L 290M /dev/my_vol2/lvshare
upvoted 8 times
sudo su
df -hT (list the volume)
umount [logical volume] (unmount the logical volume)
lvresize -r -L 290M [logical Volume] (-r to resize, -L to specify the size)
mount -a (remount the volume)
df -hT (to verify the volume)
upvoted 6 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 41/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Adminuser group -
User sarah, can not access the SHELL which is interactive in the system, and is not a member of adminuser, natasha harry sarah password is
redhat.
¼ן
¼ן
groupadd adminuser
Passwd user name // to modify password or echo redhat | passwd --stdin user name id natasha // to view user group.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 42/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Copy the file /etc/fstab to /var/tmp/fstab. Configure var/tmp/fstab permissions as the following:
cp /etc/fstab /var/tmp/
/var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:--- /var/tmp/fstab
cp /etc/fstab /var/tmp/fstab
chown root:root /var/tmp/fstab
chmod 770 /var/tmp/fstab
setfacl -m u:natasha:rw- /var/tmp/fstab
setfacl -m u:harry:rw- /var/tmp/fstab
setfacl -m o::r--,m:r /var/tmp/fstab
getfacl /var/tmp/fstab
upvoted 7 times
sudo su
cp /etc/fstab /var/tmp/fstab
chown root:root /var/tmp/fstab
chmod oug-x /var/tmp/fstab
setfacl -m u:natasha:rw /var/tmp/fstab
setfacl -m u:harry:-- /var/tmp/fstab
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 43/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day.
23 14/bin/echo hiya
systemctlenable crond
systemcdlrestart crond
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 44/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
This directory can be read and written by members of group adminuser Any files created in /home/ admin, group automatically set as adminuser.
mkdir /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
mkdir -p /home/admins
groupadd adminuser
chown :adminuser /home/admins
setfacl -m g:adminuser:rwx /home/admins
chmod g+s /home/admins/
upvoted 8 times
mkdir -p /home/admins
cd /home
chown :adminuser /home/admins
chmod g+rws/home/admins
--to test
useradd -g adminuser test
su - test
cd /home/admins
touch testfile
ls -ltr
upvoted 3 times
as opposed to chgrp?
upvoted 2 times
To test for it :
useradd -g adminuser test
sudo -u test touch /home/admins/test
sudo -u test ls
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 46/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
http://server.domain11.example.com/pub/updates.
The original kernel is still valid and can be guided when system starts up.
Using the browser open the URL in the question, download kernel file to root or home directory. uname ג€"r// check the current kernel version
Some questions are: Install and upgrade the kernel as required. To ensure that grub2 is the default item for startup.
OR -
Yum -y install kernel// stuck with it, do not pipe! Please do not pipe!
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 47/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
System server.domain11.example.com provides a LDAP validation service, your system should bind to this service as required:
LDAP is used for providing account information and validation information Connecting and using the certification of
http://server.domain11.example.com/pub/
EXAMPLE-CA-CERT to encrypt -
After the correct configuration, ldapuser1 can log into your system, it does not have HOME directory until you finish autofs questions, ldapuser1
password is password.
yum -y install sssd authconfig-gtk krb5-workstation authconfig-gtk // open the graphical interface
Modify user account database to ldap, fill up DN and LDAP SERVER as questions required, use TLS to encrypt connections making tick, write
Id ldapuser1 -
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 48/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com
Vim /etc/chrony.conf -
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 49/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
timedatectl -H classroom.example.com
timedatectl set-ntp on
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 50/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure autofs.
Configure the autofs automatically mount to the home directory of LDAP, as required: server.domain11.example.com use NFS to share the home
to your system. This file system contains a pre configured home directory of user ldapuserX.
server.domain11.example.com /home/guests/ldapuser
Home directory of ldapuserX should automatically mount to the ldapuserX of the local /home/guests Home directory's write permissions must be
mkdir /home/rehome
/etc/auto.master
/home/rehome/etc/auto.ldap
cp /etc/auto.misc /etc/auto.ldap
/etc/auto.ldap
su - ldapuserX// test
If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the
means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.
/home/guests /etc/auto.ldap
ldapuserX -fstype=nfs,rw,nosuid,softserver.domain11.example.com:/home/guests/ldapuserX
vi /etc/auto.ldap
add "ldapuserX server.domain11.example.com:/home/guests/ldapuserX"
#No need to specify -fstype since it was NFS, see 'man autofs'
upvoted 1 times
vi /etc/auto.ldap
add "ldapuserX server.domain11.example.com:/home/guests/ldapuserX"
#No need to specify -fstype since it was NFS, see 'man autofs'
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 51/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
¼ן
passwd iar
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 52/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Adding an extra 500M swap partition to your system, this swap partition should mount automatically when the system starts up. Don't remove and
fdisk -cu /dev/vda// in the way of expanding the partition, don't make main partition partx ג€"a /dev/vda mkswap /dev/vdax swapon /dev/vdax
/dev/vdaxswapswapdefaults0 0
mount -a
# swapon -a
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 53/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Search files.
Find out files owned by jack, and copy them to directory /root/findresults
mkdir/root/findfiles
sudo su
mkdir /root/findresults (create folder if doesn't exist)
find / -user jack -type f -exec cp {} /root/findresults/ \;
ls /root/findresults (to verify)
upvoted 9 times
I have heard from several people that they encountered a slightly modified version of this question, where it was required to include all files with
SUID permission. Just add -perm u=s in the command to do so. One person also had this question made so that it must be made into a shell script.
So take note ;)
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 54/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 55/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Search a String -
Find out all the columns that contains the string seismic within /usr/share/dict/words, then copy all these columns to /root/lines.tx in original
order, there is no blank line, all columns must be the accurate copy of the original columns.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 56/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a backup -
Create a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.
cd /usr/local
mkdir /test
tar ג€"jxvf /root/backup.tar.bz2 ג€"C /test// Decompression to check the content is the same as the /usr/loca after
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 57/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
# cd /usr/local
# tar -jcvf /root/backup.tar.bz2 /usr/local
# mkdir /test
# tar -jxcf /root/backup.tar.bz2 -C /usr/local
If you do it the way the original answer says it will return the "cowardly refusing" error
upvoted 2 times
SIMULATION -
Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.
Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/database
fdisk -cu /dev/vda// Create a 1G partition, modified when needed partx ג€"a /dev/vda pvcreate /dev/vdax vgcreate datastore /dev/vdax ג€"s
16M lvcreateג€" l 50 ג€"n database datastore mkfs.ext3 /dev/datastore/database mkdir /mnt/database mount /dev/datastore/database
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 58/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
IP Address: 172.28.10.5/4 -
Gateway: 172.28.10.1 -
DNS: 172.28.10.1 -
Connect automatically -
Click "Apply", save and exit, and restart your network services:
NETWORKING=yes -
HOSTNAME=dtop5.dn.ws.com -
GATEWAY=172.28.10.1 -
# Generated by NetworkManager
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 59/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
Search dn.ws.com -
Nameserver 172.28.10.1 -
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 60/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
# fdisk /dev/sda
(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
8I
82
W-
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID -
swapon -a
vim /etc/fstab
(swapon -s)
partprobe or reboot
free -m
mkswap /dev/sdX1
swapon -a
free -m
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 61/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 62/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
sysctl -w
There is no option -P in RHEL8. You need to use the -w option followed by the argument
sysctl -w net.ipv4.ip_forward=1
NOTE: No space before or after "=" sign.
upvoted 9 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 63/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
# vim /boot/grub/grub.conf
kernel/vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSroot
rd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DM
# cat /proc/cmdline
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 64/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Upgrade the kernel, start the new kernel by default. kernel download from this address:
ftp://server1.domain10.example.com/pub/update/new.kernel
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title
Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-
#wget ftp://server1.domain10.example.com/pub/update/new.kernel
find the name of the new.kerrnal
#ls
#rpm -ivh new.kernel
list all install kernels
#dnf list installed kernel
#grubby --info=ALL
#grubby --set-default="/boot/vmlinuz-4.18.0-348.7.1.el8_5.x86_64"
#grubby --set-default-index=0
upvoted 5 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 65/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
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
iptables -F
In RHEL8
# firewall-cmd --zone=block --add-source=172.25.0.0/16 --permanent
# firewall-cmd --reload
upvoted 11 times
For this solution to work, you would need to permit the .24 subnet and all of the necessary ports utilized in this exam. the rich-rules are a
better/quicker solution.
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 66/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 67/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
http://instructor.example.com/pub/rhel6/dvd
/etc/yum.repos.d/base.repo
[base]
name=base
baseurl=http://instructor.example.com/pub/rhel6/dvd
gpgcheck=0
yum list
enabled=1
is missing
upvoted 7 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 68/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL6 Installed System is
going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are
assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network's Host?
vi /etc/sysconfig/network GATEWAY=192.168.0.254
OR -
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0
BOOTPROTO=static -
ONBOOT=yes -
IPADDR=192.168.0.?
NETMASK=255.255.255.0 -
GATEWAY=192.168.0.254 -
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address
192.168.0.254 and
192.168.1.254.
nmtui -> edit connection -> routing <edit> -> add route
much easier to remember
upvoted 6 times
# Add a permanent route to 192.168.1.0/24 via 192.168.0.254 on the connection identified above. in this example that connection is static-enp0s3
sudo nmcli con modify static-enp0s3 +ipv4.routes "192.168.1.0/24 198.168.0.254"
sudo nmcli con up static-enp0s3
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 70/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.
It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
Type the Size: +100M ->You can Specify either Last cylinder of Size here.
Press P to verify the partitions lists and remember the partitions name. Default System ID is 83 that means Linux Native.
Reboot the System and verify that swap is automatically enabled or not.
In RHEL8 for fstab configuration is not more recommended to use absolute patch to the device like /dev/sda7.
The recommendation is to use the UUID identifier instead.
To get the swap or any other filesystem's UUID use the command blkid.
This will show you all filesystems UUIDs in example:
/dev/sda7: UUID="361ed5b5-872a-4e49-ba70-91efb28b2bb4" TYPE="swap" PARTUUID="caa5e8f6-01"
$sudo su
#lsblk -psf
#fdisk /dev/sd[x]
#n
#t
#82
#mkswap /dev/sd[x]
#swapon /dev/sd[x]
#echo '/dev/sd[v] swap swap defaults 0 0' >> /etc/fstab
#systemctl daemon-reload
#mount -a
#lsblk -psf
upvoted 5 times
$ fdisk /dev/sda
# change the partition type to swap
$ partprobe
$ echo " /dev/sdb1 swap swap defaults 0 0 " >> /etc/fstab
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 71/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
$ mkswap /dev/sdb1
$ swapon -a
upvoted 2 times
SIMULATION -
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and
192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.
ONBOOT=yes -
BOOTPROTO=static -
IPADDR=X.X.X.X -
NETMASK=X.X.X.X -
GATEWAY=192.168.0.254 -
ifdown eth0
ifup eth0
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 72/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make
successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.
# fsck -f /dev/vo/myvol
-r - resize filesystem
upvoted 13 times
When you use this option, the lvreduce command attempts to reduce the file system before shrinking the logical volume. If shrinking the file
system fails, as can occur if the file system is full or the file system does not support shrinking, then the lvreduce command will fail and not
attempt to shrink the logical volume.
upvoted 5 times
# umount /mnt/myvol
#e2fsck -f /dev/mapper/vo-myvol
#resize2fs /dev/mapper/vo-myvol 200M
#lvreduce -l -50 vo/myvol (if PE size was 4.00 MiB)
#lvdisplay vo/myvol
--LV Path /dev/vo/myvol
--LV Size 200.00 MiB
--Current LE 50
----
#mount -a
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 73/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 74/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the
size of Logical
lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1) ext2online -d /dev/test0/testvolume1 lvextend command is
used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 75/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you
already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of
lvtestvolume by 5GB.
Create a partition having size 5 GB and change the syste id '8e'. use partprobe command pvcreate /dev/hda9 Suppose your partition number is
hda9. vgextend test0 /dev/hda9 vgextend command add the physical disk on volume group. lvextend -L+5120M /dev/test0/lvtestvolume verify
They identify the LVM as mounted; which indicates that there is an associated FS.
You'll wanna make sure that unmount first, and then resize the FS as well.
This can easily be done by adding the additional -r switch in the command:
lvextend -L +5G -r [/dev/vg/lvm]
If you forget this step, you can also run resize2fs or xfs_growfs
upvoted 6 times
https://access.redhat.com/solutions/24770
upvoted 1 times
--in above command because we are going to use 100% of 5GB disk we specified +100%FREE.
Below two commands i am adding however i didn't have to use the because while using -r in above command volume is already resized and
automatically fle system type is matched to that of the existing volume.
#df -h /data
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 76/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created
on your server
192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home
Create a Directory /rhome/stationx where x is your station number. vi /etc/auto.master and write at the end of file /rhome/stationx
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We
have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the
authconfig with option or system- config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a
RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the
/etc/auto.master file. On
/etc/auto.master file we specified the mount point the configuration file for mount point.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 77/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Make on data that only the user owner and group owner member can fully access.
According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data
SIMULATION -
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.
Permission should be like this: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data
If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set
the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 78/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Your System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's
IP address has assigned. How will you forward the packets from one network to another network?
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To
/proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 79/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
useradd eric
passwd eric
vi /etc/passwd
eric:x:505:505::/home/eric:/sbin/nologin
Which shell or program should start at login time is specified in /etc/passwd file? By default, Redhat Enterprise Linux assigns the /bin/bash
shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/ false instead of login shell.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 80/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
1. vi /etc/auto.master
vi /etc/auto.misc
chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time
and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in
/etc/auto.master.
In RHEL8 and because de request is not with autofs, we can proceed in this way:
# mount server1.example.com server:/data /mnt
upvoted 8 times
Server1
assume /data already share from server1.example.com, otherwise
#echo '/data *(rw)' >> /etc/exports
#exportfs -a
Server2
#systemctl enable --now nfs-server
#mkdir /mnt/shared
#mount -t nfs server1.example.com:/data mnt/shared
upvoted 1 times
At server2:
#mount -o rw,sync server1.example.com:/data /mnt
#df -h /mnt
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 81/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make
successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are
set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system,
Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical
RAID array.
Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size.
Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.
Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.
Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a
specific VG.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 82/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter
Key.
5. Type the Size: +100M you can specify either Last cylinder of size here.
6. Press P to verify the partitions lists and remember the partitions name.
OR -
vi /etc/fstab
Write:
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 83/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and
Restore. But you don't know the root password. Change the root password to redhat and login in default Runlevel.
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password
you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
6. Press ctrl+d
In RHEL8
- reboot the system
- press "e" letter
- Add "rd.break" at the end of de line thet begening with "Linux" in grub menu
- ctrl + x
- # mount -o remount,rw /sysroot
- # chroot /sysroot
- # passwd
- # touch /.autorelabel
- # exit
- # logout
upvoted 28 times
In RHEL 9
- Reboot the system
- Press 'e' and modify line starting with Linux with rw and add init=/bin/bash
- Press F10
- Enter passwd to reset root passwrod
- touch /autorelable
- exec /sbin/init
upvoted 2 times
- Reboot
- At GRUB2 press e for the primary (default) kernel
- Replace ro with rw init=/sysroot/bin/sh
- Ctrl+X
- chroot /sysroot
- passwd root
- Enter the password
- touch /.autorelabel
- Exit
- Reboot
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 84/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
You are a System administrator. Using Log files very easy to monitor the system. Now there are 50 servers running as Mail, Web, Proxy, DNS
services etc. You want to centralize the logs from all servers into on LOG Server. How will you configure the LOG Server to accept logs from
remote host?
By default, system accept the logs only generated from local host. To accept the Log from other host configure: vi /etc/sysconfig/syslog
SYSLOGD_OPTIONS="-m 0 -r"
Where -
$ vim /etc/rsyslog.conf
# uncomment the lines containing
(load = "imudp" )
(type = "imudp" port="514)
(load = "imtcp" )
(type = "imtcp" port="514)
$ firewall-cmd --add-port=514/tcp --permanent
# restart firewall and rsyslog service
upvoted 5 times
vi /etc/rsyslog.conf
/imtcp – to search the string in question
Uncomment 2 lines starting with ‘module’ and ‘input’
systemctl restart rsyslog
systemctl status rsyslog (Ensure rsyslog restarted correctly)
firewall-cmd --add-port=514/tcp –permanent (Add the port in question and make it permanent)
firewall-cmd –reload (Reload the config to ensure changes are still in place)
firewall-cmd --list-all (Verify the config)
upvoted 5 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 85/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Your System is configured in 192.168.0.0/24 Network and your nameserver is 192.168.0.254. Make successfully resolve to server1.example.com.
1. Vi /etc/resolv.conf
nameserver 192.168.0.254
2. host server1.example.com
nslookup server1.example.com
upvoted 9 times
In RHEL8, add this line to the /etc/hosts file and save the changes as follow:
#vim /etc/hosts
192.168.0.254 server1.example.com
upvoted 9 times
in RHEL 8 :
vi /etc/hosts
192.168.0.254 nameserver
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 86/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the
package zsh.
or
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 87/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Some users home directory is shared from your system. Using showmount -e localhost command, the shared directory is not shown. Make access
Make automatically start the nfs service on next reboot: chkconfig nfs on
Make automatically start the portmap service on next reboot: chkconfig portmap on
If running flush the iptables using iptables -F and stop the iptables service.
NFS Server:
- dnf install nfs-utils libnfsidmap
- systemctl enable rpcbind & nfs-server
- systemctl start rpcbind, nfs-server, rpc-statd, nfs-idmapd
- vi /etc/exports
- add /home/user 192.168.x.x (rw,sync,no_root_squash)
- exportfs -rv
- showmount -e
- Optional: may need to enable the rule on firewalld or stop it altogether for it to work on remote clients
NFS Client:
- dnf install nfs-utils rpcbind
- systemctl start rpcbind
- ps -ef | egrep “firewalld:iptables” (may need to stop these two services, or add appropriate rules for mounting to work across server and client)
- Create a mount point
- Mount 192.168.x.x:/dir /mountpoint
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 88/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter
Keys -
5. Type the size: +100M you can specify either Last cylinder of size here.
6. Press P to verify the partitions lists and remember the partitions name.
OR -
2. vi /etc/fstab
3. Write:
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 89/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for
encryption communication.
index.htm
/etc/httpd/conf/ssl.key/server.key </
VirtualHost>
cd /etc/httpd/conf
3 make testcert
Create the directory and index page on specified path. (Index page can download from ftp://server1.example.com at exam time) service httpd
Apache can provide encrypted communications using SSL (Secure Socket Layer). To make use of encrypted communication, a client must
request to https protocol, which is uses port 443. For HTTPS protocol required the certificate file and key file.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 90/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16. Make successfully ping to 172.25.254.254 by
Enter the IP Address as given station number by your examiner: example: 172.24.0.1
press on ok
ifdown eth0
ifup eth0
In the lab server is playing the role of router, IP forwarding is enabled. Just set the Correct IP and gateway, you can ping to 172.25.254.254.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 91/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
vi /etc/resolv.conf
nameserver 172.24.254.254
host server1.example.com
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.
[main]
dns=none
Only then can we modify the /etc/resolv.conf manually and it will persist.
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 92/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP Forwarding.
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1
/proc is the virtual filesystem, containing the information about the running kernel.
To change the parameter of running kernel you should modify on /proc. From Next reboot the system, kernel will take the value from
/etc/sysctl.conf.
SIMULATION -
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.
If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.
Now any file or folder created in the archive will have the same owner:group permissions as parent folder, in this case same as archive folder
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 93/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Make on /archive directory that only the user owner and group owner member can fully access.
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group
member (sysuser) can fully access the directory so: chmod 770 /archive
SIMULATION -
Notes:
¼ן
YUM http://instructor.example.com/pub/rhel6/dvd
¼ן
ldap http //instructor.example.com/pub/EXAMPLE-CA-CERT
¼ן
¼ן
Install dialog package.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 94/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
/etc/sysconfig/selinux
SELINUX=enforcing
SELINUX=enforcing
upvoted 5 times
/etc/sysconfig/selinux
SELINUX=enforcing
sestatus can also be used to see SELinux settings: Current Mode: shows the current mode, Mode from config file: Shows what mode will be set after
reboot.
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 95/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
/etc/init.d/iptables start
iptables -F
iptables -X
iptables -Z
/etc/init.d/iptables save
chkconfig iptables on
SIMULATION -
In the system, mounted the iso image /root/examine.iso to/mnt/iso directory. And enable automatically mount (permanent mount) after restart
system.
/etc/fstab:
In RHEL8:
/root/examine.iso /mnt/iso iso9660 loop 0 0 mount -a
upvoted 6 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 96/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure your NFS services. Share the directory by the NFS Shared services.
/etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
showmount -e localhost
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 97/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
1. Find all sizes of 10k file or directory under the /etc directory, and copy to /tmp/findfiles directory.
2. Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
#mkdir /tmp/findfiles
# find /etc -size 10k -exec cp -r {} /tmp/findfiles \;
# find / -user lucy -exec cp -r {} /tmp/findfiles \;
upvoted 6 times
mkdir /tmp/findfiles
cp $(find /etc -size 10k) /tmp/findfiles/
cp $(find / -user lucy) /tmp/findfiles/
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 98/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
There is a local logical volumes in your system, named with common and belong to VGSRV volume group, mount to the /common directory. The
Requirement:
Extend the logical volume to 190 MB without any loss of data. The size is allowed between 160-160 MB after extending.
# Create a Filesystem
mkfs.ext4 /dev/VGSRV/common
# Update /etc/fstab
echo "/dev/mapper/VGSRV-common /mnt/common ext4 defaults 0 0" >> /etc/fstab
# Reload systemd
systemctl daemon-reload
nano /etc/fstab:
/dev/mapper/vgsrv-common /common ext4 defaults 1 2
mount -a
or
lvextend -L +68M /dev/mapper/vgsrv-common
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 99/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
The first option specifies the exact amount that is being requested (190), while the second options is adding the difference (190-128=62) to
meet the requested storage amount.
upvoted 6 times
SIMULATION -
There is a local logical volumes in your system, named with shrink and belong to VGSRV volume group, mount to the /shrink directory. The
MB.
Requirement:
Reduce the logical volume to 220 MB without any loss of data. The size is allowed between 200-260 MB after reducing.
cd;umount /shrink
e2fsck -f /dev/mapper/vgsrv-shrink
mount -a
umount /shrink
e2fsck -f /dev/mapper/vgsrv-shrink
####* Shrink the file system as small as possible
resize2fs -M /dev/mapper/vgsrv-shrink
lvreduce -L 220M /dev/mapper/vgsrv-shrink
####* extend the file system to the max device size
resize2fs /dev/mapper/vgsrv-shrink
mount -a
upvoted 3 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 100/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).
/etc/fstab:
SIMULATION -
According the following requirements to create user, user group and the group members:
- A user named bobby, bobby's login shell should be non-interactive. Bobby not belong to admin as the secondary group.
Mary, Alice, bobby users must be set "password" as the user's password.
groupadd admin
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 101/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
This directory has read, write and execute permissions for all admin group members.
All the documents or directories created in the/common/admin are automatically inherit the admin group.
mkdir -p /common/admin
Full solution:
mkdir -p /common/admin
groupadd admin
chown :admin -R /common
chmod 775 -R /common
chmod g+s -R /common
touch testfile (to verify the latter requirement)
upvoted 5 times
mkdir -p /common/admin
groupadd admin
chown :admin /common/admins
chmod 770 /common/admins
chmod g+s /common/admins
upvoted 1 times
#Create Group
groupadd admin
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 103/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The updated kernel must exist as default kernel after rebooting the system.
SIMULATION -
Requirement: The local time at 14:23 every day echo "Hello World.".
crontab -u mary -e
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 104/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The user authentication has been provided by ldap domain in 192.168.0.254. According the following requirements to get ldapuser.
-LdapuserX must be able to login your system, X is your hostname number. But the ldapuser's home directory cannot be mounted, until you realize
system-config-authentication &
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 105/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
According the following requirements, configure autofs service and automatically mount to user's home directory in the ldap domain.
- Instructor.example.com (192.168.0.254) has shared /home/guests/ldapuserX home directory to your system by over NFS export, X is your
hostname number.
- LdapuserX's home directory must be able to automatically mount to /home/ guests/ldapuserX in your system.
However, you can log on to the ldapuser1 - ldapuser99 users after verification. But you can only get your corresponding ldapuser users. If your
system's hostname is server1.example.com, you can only get ldapuser1's home directory.
cat /etc/auto.master:
/home/guests /etc/auto.ldap
cat /etc/auto.ldap:
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 106/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Copy /etc/fstab document to /var/TMP directory. According the following requirements to configure the permission of this document.
cp /etc/fstab /var/tmp
Full solution:
# cp /etc/fstab /var/tmp
# chown root:root /var/tmp/fstab
# useradd mary
# useradd alice
# useradd -u 1000 bob
# setfacl -m u:mary:rw- /var/tmp/fstab
# setfacl -m u:alice:r-x /var/tmp/fstab
# setfacl -m u:bob:rw- /var/tmp/fstab
# chmod o+r-- /var/tmp/fstab
# getfact /var/tmp/fstab (to verify all permissions)
# ls -ltr /var/tmp/fstab (to verify all permissions)
upvoted 8 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 107/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
system-config-date &
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 108/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure the FTP service in your system, allow remote access to anonymous login and download the program by this service. Service is still
/etc/init.d/vsftpd start
chkconfig vsftpd on
SIMULATION -
Configure your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system
rebooting.
cd /var/www/html
#cd /var/www/html
upvoted 1 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 109/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical volume named lv0 in this volume group, set size is 20
PE, make it as ext3 file system, and mounted automatically under data.
fdisk /dev/vda
pvcreate /dev/vda3
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir /data
/etc/fstab:
mount ג€"a
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 110/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document,
# wget ftp://instructor.example.com/pub/testfile
# mkdir -p /MNT/answer
# grep ‘abcde’ testfile > /MNT/answer
upvoted 8 times
SIMULATION -
getenforce // Check the current mode of SELinux // SELinux runs in enforcing mode // Check getenforce 1 getenforce vim /etc/selinux/config
: wg
sestatus
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 111/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
vim/etc/yum.repos/base.repo
[base]
name=base
Use yum list for validation, the configuration is correct if list the package information. If the Yum configuration is not correct then maybe cannot
SIMULATION -
Resize the logical volume vo and its filesystem to 290 MB. Make sure that the filesystem contents remain intact.
Note: Partitions are seldom exactly the same size requested, so a size within the range of 260 MB to 320 MiB is acceptable.
df -hT
lvscan
Note: This step is only need to do in our practice environment, you do not need to do in the real exam resize2fs /dev/vg0/vo // Use this comand
OR -
e2fsck -f/dev/vg0/vo
umount /home
resize2fs /dev/vg0/vo required partition capacity such as 100M lvreduce -l 100M /dev/vg0/vo mount /dev/vg0/vo /home df ג€"Ht
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 112/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
A user natasha who belongs to adminuser as a secondary group A user harry who also belongs to adminuser as a secondary group.
A user sarah who does not have access to an interactive shell on the system, and who is not a member of adminuser, natasha, harry, and sarah
groupadd sysmgrs
# passwd Natasha
# passwd harry
# passwd sarrah
Full solution:
# groupadd adminuser
# useradd -aG adminuser natasha
# useradd -aG adminuser harry
# useradd -s /sbin/nologin sarah
# echo 'redhat' | passwd --stdin natasha
# echo 'redhat' | passwd --stdin harry
# echo 'redhat' | passwd --stdin sarah
upvoted 6 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 113/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that: the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root. the file /var/tmp/fstab should not be executable by anyone. the user natasha is able to read and
write /var/tmp/fstab. the user harry can neither write nor read /var/tmp/fstab. all other users (current or future) have the ability to read
/var/tmp/fstab.
cp -a /etc/fstab /var/tmp
cd /var/tmp
ls -l
getfacl /var/tmp/fstab
[ No need to do this, there won't be execute permission for the file by default]
[Read permission will be there for all the users, by default. Check it using ls -l /var/tmp/fstab] Verify by
[ ls -la /var/tmp/fstab]
SIMULATION -
# crontab -e -u natasha
23 14 * * * /bin/echo hiya
:wq!
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 114/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The directory should be readable, writable, and accessible to members of adminuser, but not to any other user. (It is understood that root has
Files created in /home/admins automatically have group ownership set to the adminuser group
mkdir /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 115/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The updated kernel is the default kernel when the system is rebooted
vim /etc/grub.conf
Check the updatted kernel is the first kernel and the orginal kernel remains available. set default=0
:wq!
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 116/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
The base DN for the authentication service is dc=domain11, dc=example, dc=com LDAP is used to provide both account information and
authentication information. The connection should be encrypted using the certificate at http://host.domain11.example.com/pub/domain11.crt
When properly configured, ldapuserX should be able to log into your system, but will not have a home directory until you have completed the
autofs requirement.
Username: ldapuser11 -
Password: password -
LDAP password -
OK -
starting sssd
SIMULATION -
#system-config-date
Check mark Synchronize date and time over network. Remove all the NTP SERVER and click ADD and type server.domain11.example.com
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 117/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Configure autofs to automount the home directories of LDAP users as follows: host.domain11.example.com NFS-exports /home to your system.
This filesystem contains a pre-configured home directory for the user ldapuser11 ldapuser11's home directory is host.domain11.example.com
/rhome/ldapuser11 ldapuser11's home directory should be automounted locally beneath /rhome as /rhome/ldapuser11
:wq!
# vim /etc/auto.misc
chkconfig autofs on
su -ldapuser11
# exit
# Create autofs file - defining the base mount dir . here it is /rhome - where all the homedirs will be mounted
vi /etc/auto.master.d/auto.autofs
/rhome /etc/home.indirect
# Validate
su - remoteuser16
pwd
touch testfile
upvoted 2 times
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 118/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a user alex with a userid of 3400. The password for this user should be redhat.
passwd alex
su -alex
SIMULATION -
The swap partition should automatically mount when your system boots.
Do not remove or otherwise alter any existing swap partitions on your system.
fdisk -l
pn
e or p select e
default(first): enter
l: 82 p
w #reboot
#mkswap /dev/vda5
vim /etc/fstab
:wq
mount -a
swapon -a
swapon -s
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 119/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Locate all the files owned by ira and copy them to the / root/findresults directory.
# mkdir -p /root/findresults
SIMULATION -
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.
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 120/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
SIMULATION -
Create a backup file named /root/backup.tar.bz2, which contains the contents of /usr/local, bar must use the bzip2 compression.
cd /usr/local
mkdir /test
Extract:
mkdir /test
tar -jxvf backup.tar.bz2 -C /test
upvoted 4 times
SIMULATION -
The logical volume is named database and belongs to the datastore volume group and has a size of 50 extents.
Logical volumes in the datastore volume group should have an extent size of 16 MB.
The logical volume should be automatically mounted under /mnt/database at system boot time.
partx -a /dev/vda
pvcreate /dev/vdax
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
vi /etc/fstab
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 121/122
2024/3/31 12:46 EX200 Exam - Free Actual Q&As, Page 1 | ExamTopics
https://www.examtopics.com/exams/redhat/ex200/custom-view/ 122/122