This page was exported from Latest Exam Prep [ http://certify.vceprep.com ] Export date:Sat Sep 21 11:27:39 2024 / +0000 GMT ___________________________________________________ Title: Pass Your RHCE Dumps as PDF Updated on 2022 With 111 Questions [Q60-Q82] --------------------------------------------------- Pass Your RHCE Dumps as PDF Updated on 2022 With 111 Questions RedHat RHCE Real Exam Questions and Answers FREE Q60. CORRECT TEXTThere 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 Assigning following IP: 172.24.0.x where x is your station number. UsenetconfigcommandEntertheIPAddressasgivenstationnumberbyyourexaminer:example:172.24.0.1EnterSubnetMaskEnterDefaultGatewayandprimarynameserverpressonokifdowneth0ifupeth0verifyusingifconfigInthelabserverisplayingtheroleofrouterIPforwardingisenabled.JustsettheCorrectIPandgatewayyoucanpingto172.25.254.254.Q61. CORRECT TEXTSELinux must be running in the Enforcing mode. getenforce//CheckthecurrentmodeofSELinux//SELinuxrunsinenforcingmode//Checkgetenforce1getenforcevim/etc/selinux/configselinux=enforcing//TotemporarilyenableSELinuxwgsestatusQ62. CORRECT TEXTFind 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|whilereadline;doecho$line|grepabcde|tee-a/tmp/testfiledoneORgrep`abcde’/etc/testfile>/tmp/testfileQ63. CORRECT TEXTConfigure a default software repository for your system.One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally. Yum-config-manager–add-repo=http://content.example.com/rhel7.0/x86-64/dvd”istogenerateafilevimcontent.example.com_rhel7.0_x86_64_dvd.repoAddalinegpgcheck=0YumcleanallYumrepolistAlmost4305packagesarerightWrongYumConfigurationwillleadtosomefollowingquestionscannotbeworkedout.Q64. CORRECT TEXTWho ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive. chmodg+s/archiveVerifyusing:ls-ld/archivePermissionshouldbelike:drwxrws—2rootsysuser4096Mar1618:08/archiveIfSGIDbitissetondirectorythenwhoeveryuserscreatesthefilesondirectorygroupownerautomaticallytheownerofparentdirectory.TosettheSGIDbit:chmodg+sdirectoryToRemovetheSGIDbit:chmodg-sdirectoryQ65. CORRECT TEXTConfigure 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. #chkconfigautofson#cd/etc/#vim/etc/auto.master/rhome/etc/auto.ldap#cpauto.miscauto.ldap#vimauto.ladpldapuser40-rwsoftintr172.24.40.10:/rhome/ldapuser40*-rwsoftintr172.16.40.10:/rhome/&#serviceautofsstop#serverautofsstart#showmount-e172.24.40.10#su-ladpuser40Q66. CORRECT TEXTAdd a new logical partition having size 100MB and create the data which will be the mount point for the new partition. 1.Usefdisk/dev/hda->Tocreatenewpartition.2.Typen->ForNewpartitions3.ItwillaskforLogicalorPrimaryPartitions.Presslforlogical.4.ItwillaskfortheStartingCylinder:UsetheDefaultbypressingEnterKeys5.Typethesize:+100MyoucanspecifyeitherLastcylinderofsizehere.6.PressPtoverifythepartitionslistsandrememberthepartitionsname.7.Presswtowriteonpartitionstable.8.EitherRebootorusepartprobecommand.9.Usemkfs-text3/dev/hda?OR1.mke2fs-j/dev/hda?->Tocreateext3filesystem.2.vi/etc/fstab3.Write:/dev/hda?/dataext3defaults004.Verifybymountingoncurrentsessionsalso:mount/dev/hda?/dataQ67. CORRECT TEXTConfigure the FTP service in your system, allow remote access to anonymous login and download the program by this service. Service is still running after system rebooting. yuminstallvsftpd/etc/init.d/vsftpdstartchkconfigvsftpdonQ68. CORRECT TEXTCreate a logical volumeCreate a new logical volume as required:Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.Expansion size of each volume in volume group datastore is 16MB.Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/database fdisk-cu/dev/vda//Createa1Gpartitionmodifiedwhenneededpartx-a/dev/vdapvcreate/dev/vdaxvgcreatedatastore/dev/vdax-s16Mlvcreate-l50-ndatabasedatastoremkfs.ext3/dev/datastore/databasemkdir/mnt/databasemount/dev/datastore/database/mnt/database/df-Thvi/etc/fstab/dev/datastore/database/mnt/database/ext3defaults00mount-aRestartandcheckallthequestionsrequirements.Q69. CORRECT TEXTMake on data that only the user owner and group owner member can fully access. chmod770/dataVerifyusing:ls-ld/dataPreviewshouldbelike:drwxrwx—2rootsysadmin4096Mar1618:08/dataTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysadmin)canfullyaccessthedirectoryso:chmod770/dataQ70. CORRECT TEXTPlease open the ip_forward, and take effect permanently. vim/etc/sysctl.confnet.ipv4.ip_forward=1sysctl-w(takeseffectimmediately)Ifno”sysctl.conf”optionusethesecommands:sysctl-a|grepnet.ipv4sysctl-Pnet.ipv4.ip_forward=1sysctl-wQ71. CORRECT TEXTConfigure a task: plan to run echo hello command at 14:23 every day. #whichecho#crontab-e2314***/bin/echohellos#crontab-l(Verify)Q72. CORRECT TEXTThere are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network’s Host. vi/etc/sysconfing/networkNETWORKING=yesHOSTNAME=station?.example.comGATEWAY=192.168.0.254servicenetworkrestart2.vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0ONBOOT=yesBOOTPROTO=staticIPADDR=X.X.X.XNETMASK=X.X.X.XGATEWAY=192.168.0.254ifdowneth0ifupeth0Q73. CORRECT TEXTInstall the Kernel Upgrade.Install suitable kernel update from:http://server.domain11.example.com/pub/updates.Following requirements must be met:Updated kernel used as the default kernel of system start-up.The original kernel is still valid and can be guided when system starts up. UsingthebrowseropentheURLinthequestiondownloadkernelfiletorootorhomedirectory.uname-r//checkthecurrentkernelversionrpm-ivhkernel-*.rpmvi/boot/grub.conf//checkSomequestionsare:Installandupgradethekernelasrequired.Toensurethatgrub2isthedefaultitemforstartup.Yumrepo:http://content.example.com/rhel7.0/x86-64/errataORuname-r//checkkernelYum-config-manager–add-repo=”http://content.example.com/rhel7.0/x86-64/errata”YumcleanallYumlistkernel//installdirectlyYum-yinstallkernel//stuckwithitdonotpipe!Pleasedonotpipe!Defaultenablenewkernelgrub2-editenvlist//checkModifygrub2-set-default”kernelfullname”Grub2-mkconfig-o/boot/grub2/grub.cfg//RefreshQ74. CORRECT TEXTConfigure a cron Task.User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day. crontab-e-unatasha2314/bin/echohiyacrontab-l-unatasha//viewsystemctlenablecrondsystemcdlrestartcrondQ75. CORRECT TEXTCreate a backupCreate a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress. cd/usr/localtar-jcvf/root/backup.tar.bz2mkdir/testtar-jxvf/root/backup.tar.bz2-C/test//Decompressiontocheckthecontentisthesameasthe/usr/locaafterIfthequestionsrequiretousegziptocompress.change-jto-z.Q76. CORRECT TEXTAdd 3 users: harry, natasha, tom.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. #useradd-Gadminharry#useradd-Gadminnatasha#useradd-s/sbin/nologintom#idharry;idNatasha(Showadditionalgroup)#cat/etc/passwd(Showtheloginshell)OR#system-config-usersQ77. CORRECT TEXTInstall the appropriate kernel update from http://server.domain11.example.com/pub/updates.The following criteria must also be met:The updated kernel is the default kernel when the system is rebootedThe original kernel remains available and bootable on the system ftpserver.domain11.example.comAnonymousloginftp>cd/pub/updatesftp>lsftp>mgetkernel*ftp>byerpm-ivhkernel*vim/etc/grub.confChecktheupdattedkernelisthefirstkernelandtheorginalkernelremainsavailable.setdefault=0wq!Q78. CORRECT TEXTCreate the following users, groups, and group memberships:A group named adminuser.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 should all have the password of redhat. groupaddsysmgrsuseradd-GsysmgrsNatashaWecanverifythenewlycreateduserbycat/etc/passwd)#useradd-Gsysmgrsharry#useradd-s/sbin/nologinsarrh#passwdNatasha#passwdharry#passwdsarrahQ79. CORRECT TEXTThere 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/networkGATEWAY=192.168.0.254ORvi/etc/sysconf/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=staticONBOOT=yesIPADDR=192.168.0.?NETMASK=255.255.255.0GATEWAY=192.168.0.254servicenetworkrestartGatewaydefinesthewaytoexitthepackets.AccordingtoquestionSystemworkingasarouterfortwonetworkshaveIPAddress192.168.0.254and192.168.1.254.Q80. CORRECT TEXTSearch a StringFind 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. grepseismic/usr/share/dict/words>/root/lines.txtQ81. CORRECT TEXTInstall 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#vimlocal.repo[local]name=local.repobaseurl=file:///mntenabled=1gpgcheck=0#yummakecache#yuminstall-yvsftpd#servicevsftpdrestart#chkconfigvsftpdon#chkconfig–listvsftpd#vim/etc/vsftpd/vsftpd.confanonymous_enable=YESQ82. CORRECT TEXTCreate a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount). if=/dev/zeroof=/swapfilebs=1Mcount=600mkswap/swapfile/etc/fstab:/swapfileswapswapdefaults00mount-a Loading … Pass RedHat RHCE Exam Info and Free Practice Test: https://www.vceprep.com/RHCE-latest-vce-prep.html --------------------------------------------------- Images: https://certify.vceprep.com/wp-content/plugins/watu/loading.gif https://certify.vceprep.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-10-29 11:28:09 Post date GMT: 2022-10-29 11:28:09 Post modified date: 2022-10-29 11:28:09 Post modified date GMT: 2022-10-29 11:28:09