RedHat Red Hat Certified Engineer - RHCE - RHCE Exam Practice Test

CORRECT TEXT
Adjust the size of the Logical Volume.
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.
Correct Answer:
Additiondf-hTlvextend-L+100M/dev/vg0/voLvscanxfs_growfs/home///homeisthemounteddirectoryoftheLVMthisstepjustneedtodointhepracticeenvironmentandtestEXT4doesnotneedthisstep.resize2fs/dev/vg0/vo//usethiscommandtoupdateinexamination.df-hTORSubtractione2fsck-f/dev/vg0/voumount/homeresize2fs/dev/vg0/vo//thefinalrequiredpartitioncapacityis100Mlvreduce-l100M/dev/vg0/vomount/dev/vg0/vo/homedf-hT
CORRECT TEXT
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.
Correct Answer:
#fdisk
#partprobe
#pvcreate/dev/vda6
#vgcreate-s8Mvg1/dev/vda6-s
#lvcreate-nlvshare-l50vg1-l
#mkfs.ext4/dev/vg1/lvshare
#mkdir-p/mnt/data
#vim/etc/fstab/dev/vg1/lvshare/mnt/dataext4defaults00
#mount-a
#df-h
CORRECT TEXT
Configure a cron Task.
User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day.
Correct Answer:
crontab-e-unatasha2314/bin/echohiyacrontab-l-unatasha//viewsystemctlenablecrondsystemcdlrestartcrond
CORRECT TEXT
Make on /archive directory that only the user owner and group owner member can fully access.
Correct Answer:
chmod770/archive
Verifyusing:ls-ld/archivePreviewshouldbelike:drwxrwx---2rootsysuser4096Mar1618:08/archiveTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysuser)canfullyaccessthedirectoryso:chmod770/archive
CORRECT TEXT
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Correct Answer:
#cp/etc/fstab/var/tmp/
#chgrpadmin/var/tmp/fstab
#setfacl-mu:user1:rwx/var/tmp/fstab
#setfacl-mu:user2:---/var/tmp/fstab
#ls-l-rw-rw-r--+1rootadmin685Nov1015:29/var/tmp/fstab
CORRECT TEXT
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.
Correct Answer:
WhenyouBoottheSystemitstartsondefaultRunlevelspecifiedin/etc/inittab:Id:?:initdefault:WhenSystemSuccessfullybootitwillaskforusernameandpassword.Butyoudon'tknowtheroot'spassword.Tochangetherootpasswordyouneedtobootthesystemintosingleusermode.Youcanpassthekernelargumentsfromthebootloader.1.RestarttheSystem.2.YouwillgetthebootloaderGRUBscreen.3.Pressaandtype1orsforsinglemoderoroot=LABEL=/rhgbqueits4.SystemwillbootonSingleUsermode.5.Usepasswdcommandtochange.6.Pressctrl+d