Free RHCE Certification RHCE Ultimate Study Guide (Updated 111 Questions)
Get to the Top with RHCE Practice Exam Questions
NEW QUESTION 57
CORRECT TEXT
Configure the NTP service in your system.
Answer:
Explanation:
see explanation below. Explanation system-config-date &
NEW QUESTION 58
CORRECT TEXT
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
Home directories must be writable by their users
ldapuser11's password is 'password'.
Answer:
Explanation:
vim/etc/auto.master/rhome/etc/auto.miscwq!
#vim/etc/auto.miscldapuser11--rwsynchost.domain11.example.com:/rhome/ldpauser11:wq!
#serviceautofsrestart
serviceautofsreload
chkconfigautofson
su-ldapuser11Loginldapuserwithhomedirectory
#exit
NEW QUESTION 59
CORRECT TEXT
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.
Answer:
Explanation:
rpm-ivhftp://server1/example.com/pub/updates/zsh-*or
Logintoftpserver:ftpftp://server1.example.comusinganonymoususer.
Changethedirectory:cdpubandcdupdates
Downloadthepackage:mgetzsh-*
Quitfromtheftpprompt:bye
Installthepackage
rpm-ivhzsh-*
Verifyeitherpackageisinstalledornot:rpm-qzsh
NEW QUESTION 60
CORRECT TEXT
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).
Answer:
Explanation:
if=/dev/zeroof=/swapfilebs=1Mcount=600mkswap/swapfile/etc/fstab:/swapfileswapswapdefaults00mount-a
NEW QUESTION 61
CORRECT TEXT
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 configure the autofs in the following questions.
Answer:
Explanation:
system-config-authenticationLDAPServer:ldap//instructor.example.com(IndomainformnotwriteIP)OR
#yumgroupinstalldirectory-client(1.krb5-workstation2.pam-krb53.sssd)
#system-config-authentication1.UserAccountDatabase:LDAP2.LDAPSearchBaseDN:dc=exampledc=com3.LDAPServer:ldap://instructor.example.com(IndomainformnotwriteIP)4.DownloadCACertificate5.AuthenticationMethod:LDAPpassword6.Applygetentpasswdldapuser40
NEW QUESTION 62
CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
Answer:
Explanation:
#fdisk/dev/sdap(checkPartitiontable)n(createnewpartition:pressetocreateextendedpartitionpressptocreatethemainpartitionandtheextendedpartitionisfurtherdividedintologicalpartitions)Enter+2GtlWpartx-a/dev/sdapartprobemkswap/dev/sda8CopyUUIDswapon-avim/etc/fstabUUID=XXXXXswapswapdefaults00(swapon-s)
NEW QUESTION 63
CORRECT TEXT
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?
Answer:
Explanation:
Bydefaultsystemacceptthelogsonlygeneratedfromlocalhost.ToaccepttheLogfromotherhostconfigure:vi/etc/sysconfig/syslogSYSLOGD_OPTIONS="-m0-r"Where-m0disables'MARK'messages.-renablesloggingfromremotemachines-xdisablesDNSlookupsonmessagesreceivedwith-rservicesyslogrestart
NEW QUESTION 64
CORRECT TEXT
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.
Answer:
Explanation:
vi/etc/resolv.confnameserver172.24.254.254
hostserver1.example.comOneveryclientsDNSserverisspecifiedin/etc/resolv.conf.WhenyourequestbynameittriestoresolvfromDNSserver.
NEW QUESTION 65
CORRECT TEXT
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Answer:
Explanation:
#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
NEW QUESTION 66
CORRECT TEXT
Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.
Answer:
Explanation:
#yuminstall-yhttpd
#chkconfighttpdon
#cd/var/www/html
#wgethttp://ip/dir/example.html
#cpexample.comindex.html
#vim/etc/httpd/conf/httpd.confNameVirtualHost192.168.0.254:80<VirtualHost192.168.0.254:80>DocumentRoot/var/www/html/ServerNamestation.domain40.example.com</VirtualHost>
NEW QUESTION 67
CORRECT TEXT
A YUM repository has been provided at http://server.domain11.example.com/pub/x86_64/Server.
Configure your system to use this location as a default repository.
Answer:
Explanation:
vim/etc/yum.repos/base.repo[base]name=basebaseurl=http://server.domain11.example.com/pub/x86_64/Servergpgcheck=0enable=1SaveandExitUseyumlistforvalidationtheconfigurationiscorrectiflistthepackageinformation.IftheYumconfigurationisnotcorrectthenmaybecannotanswerthefollowingquestions.
NEW QUESTION 68
CORRECT TEXT
Some users home directory is shared from your system. Using showmount -e localhost command, the shared directory is not shown. Make access the shared users home directory.
Answer:
Explanation:
VerifytheFilewhetherSharedornot?:cat/etc/exports
Startthenfsservice:servicenfsstart
Starttheportmapservice:serviceportmapstart
Makeautomaticallystartthenfsserviceonnextreboot:chkconfignfson
Makeautomaticallystarttheportmapserviceonnextreboot:chkconfigportmapon
Verifyeithersharingornot:showmount-elocalhost
Checkthatdefaultfirewallisrunningonsystem?Ifrunningflushtheiptablesusingiptables-Fandstoptheiptablesservice.
NEW QUESTION 69
CORRECT TEXT
Create one partitions having size 100MB and mount it on data.
Answer:
Explanation:
1.Usefdisk/dev/hdatocreatenewpartition.2.TypenForNewpartitions.3.ItwillaskforLogicalorPrimaryPartitions.Presslforlogical.4.ItwillaskfortheStartingCylinder:UsetheDefaultbypressingEnterKey.5.TypetheSize:+100MyoucanspecifyeitherLastcylinderofsizehere.6.PressPtoverifythepartitionslistsandrememberthepartitionsname.7.Presswtowriteonpartitionstable.8.EitherRebootorusepartprobecommand.9.Usemkfs-text3/dev/hda?ORmke2fs-j/dev/hda?Tocreateext3filesystem.vi/etc/fstabWrite:/dev/hda?/dataext3defaults12VerifybymountingoncurrentSessionsalso:mount/dev/hda?/data
NEW QUESTION 70
CORRECT TEXT
Create a new logical volume according to the following requirements:
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.
Format the new logical volume with a ext3 filesystem.
The logical volume should be automatically mounted under /mnt/database at system boot time.
Answer:
Explanation:
fdisk-cu/dev/vdapartx-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-a
NEW QUESTION 71
CORRECT TEXT
Create a logical volume
Create 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
Answer:
Explanation:
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.
NEW QUESTION 72
CORRECT TEXT
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 automatically mount by autofs server.
- All ldap user's password is "password".
Answer:
Explanation:
see explanation below. Explanation system-config-authentication &
NEW QUESTION 73
......
Pass RedHat RHCE exam - questions - convert Tets Engine to PDF: https://www.easy4engine.com/RHCE-test-engine.html
Use Real RHCE Dumps Free Sample Questions and Practice Test Engine: https://drive.google.com/open?id=124FAZFkiLzj-7efYgR1jbXqvJO5tAxdy

