The RedHat RHCE Questions & Practice Test are Available On-Demand
Valid RHCE Exam Dumps Ensure you a HIGH SCORE
NEW QUESTION 16
CORRECT TEXT
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com
Answer:
Explanation:
Configuretheclient:Yum-yinstallchronyVim/etc/chrony.confAdd:serverclassroom.example.comiburstStart:systemctlenablechronydsystemctlrestartchronydValidate:timedatectlstatus
NEW QUESTION 17
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 18
CORRECT TEXT
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.
Answer:
Explanation:
(1)find/etc-size10k-execcp{}/tmp/findfiles\;(2)find/-userlucy-execcp-a{}/tmp/findfiles\;Note:Iffindusersandpermissionsyouneedtousecp-aoptionstokeepfilepermissionsanduserattributesetc.
NEW QUESTION 19
CORRECT TEXT
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?
Answer:
Explanation:
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.254
servicenetworkrestartGatewaydefinesthewaytoexitthepackets.AccordingtoquestionSystemworkingasarouterfortwonetworkshaveIPAddress192.168.0.254and192.168.1.254.
NEW QUESTION 20
CORRECT TEXT
Configure your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.
Answer:
Explanation:
cd/var/www/htmlwgethttp://instructor.example.com/pub/serverX.htmlmvserverX.htmlindex.html/etc/init.d/httpdrestartchkconfighttpdon
NEW QUESTION 21
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 22
CORRECT TEXT
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.
Answer:
Explanation:
#cd/root;wgetftp://192.168.0.254/pub/boot.iso
#mkdir-p/media/cdrom
#vim/etc/fstab/root/boot.iso/media/cdromiso9660defaultsloop00
#mount-amount[-tvfstype][-ooptions]devicedir
NEW QUESTION 23
SIMULATION
Add an additional swap partition of 754 MB to your system.
The swap partition should automatically mount when your system boots.
Do not remove or otherwise alter any existing swap partitions on your system.
Answer:
Explanation:
fdisk-l
fdisk-cu/dev/vdapneorpselectedefault(first):enterdefault(last):enterndefault(first):enterdefault(first):+754Mt(1-5)l:82pw
#reboot
#mkswap/dev/vda5
vim/etc/fstab/dev/vda5swapswapdefaults00wq
mount-a
swapon-a
swapon-s
NEW QUESTION 24
CORRECT TEXT
Configure /var/tmp/fstab Permission.
Copy the file /etc/fstab to /var/tmp/fstab. Configure var/tmp/fstab permissions as the following:
Owner of the file /var/tmp/fstab is Root, belongs to group root
File /var/tmp/fstab cannot be executed by any user
User natasha can read and write /var/tmp/fstab
User harry cannot read and write /var/tmp/fstab
All other users (present and future) can read var/tmp/fstab.
Answer:
Explanation:
cp/etc/fstab/var/tmp/
/var/tmp/fstabviewtheownersetfacl-mu:natasha:rw-/var/tmp/fstabsetfacl-mu:haryy:---/var/tmp/fstabUsegetfacl/var/tmp/fstabtoviewpermissions
NEW QUESTION 25
CORRECT TEXT
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.
Answer:
Explanation:
1.chmodg+s/data2.Verifyusing:ls-ld/dataPermissionshouldbelikethis:drwxrws---2rootsysadmin4096Mar1618:08/dataIfSGIDbitissetondirectorythenwhoeveryuserscreatesthefilesondirectorygroupownerautomaticallytheownerofparentdirectory.TosettheSGIDbit:chmodg+sdirectoryToRemovetheSGIDbit:chmodg-sdirectory
NEW QUESTION 26
CORRECT TEXT
SELinux must run in force mode.
Answer:
Explanation:
/etc/sysconfig/selinuxSELINUX=enforcing
NEW QUESTION 27
CORRECT TEXT
Create 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.
Answer:
Explanation:
groupaddsysmgrs
useradd-GsysmgrsNatasha
Wecanverifythenewlycreateduserbycat/etc/passwd)
#useradd-Gsysmgrsharry
#useradd-s/sbin/nologinsarrh
#passwdNatasha
#passwdharry
#passwdsarrah
NEW QUESTION 28
CORRECT TEXT
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.
Answer:
Explanation:
nameserverisspecifiedinquestion1.Vi/etc/resolv.confnameserver192.168.0.2542.hostserver1.example.com
NEW QUESTION 29
CORRECT TEXT
Open kmcrl value of 5 , and can verify in /proc/ cmdline
Answer:
Explanation:
#vim/boot/grub/grub.confkernel/vmlinuz-2.6.32-71.el6.x86_64roroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietkmcrl=5Restarttotakeeffectandverification:
#cat/proc/cmdlineroroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=usrhgbquietkmcrl=5
NEW QUESTION 30
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+2Gt8I82Wpartx-a/dev/sdapartprobemkswap/dev/sda8CopyUUIDswapon-avim/etc/fstabUUID=XXXXXswapswapdefaults00(swapon-s)
NEW QUESTION 31
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.
Answer:
Explanation:
crontab-e-unatasha2314/bin/echohiyacrontab-l-unatasha//viewsystemctlenablecrondsystemcdlrestartcrond
NEW QUESTION 32
CORRECT TEXT
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.
Home directory of ldapuserX is:
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 available for users ldapuser1's password is password
Answer:
Explanation:
yuminstall-yautofsmkdir/home/rehome
/etc/auto.master/home/rehome/etc/auto.ldapKeepthenexitcp/etc/auto.misc/etc/auto.ldap
/etc/auto.ldapldapuserX-fstype=nfsrwserver.domain11.example.com:/home/guests/Keepthenexitsystemctlstartautofssystemctlenableautofssu-ldapuserX//testIftheabovesolutionscannotcreatefilesorthecommandpromptis-bash-4.2$itmaybeexistmulti-leveldirectorythisneedstochangetheserver.domain11.example.com:/home/guests/toserver.domain11.example.com:/home/guests/ldapuserX.Whatismulti-leveldirectory?ItmeansthereisadirectoryofldapuserXunderthe/home/guests/ldapuserXinthequestions.Thisdirectoryistherealdirectory.
NEW QUESTION 33
CORRECT TEXT
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.
Answer:
Explanation:
FirstcheckthesizeofLogicalVolume:lvdisplay/dev/vo/myvol
Makesurethatthefilesystemisinaconsistentstatebeforereducing:
#fsck-f/dev/vo/myvol
Nowreducethefilesystemby200MB.
#resize2fs/dev/vo/myvol200M
Itisnowpossibletoreducethelogicalvolume.
#lvreduce/dev/vo/myvol-L200M
VerifytheSizeofLogicalVolume:lvdisplay/dev/vo/myvol
Verifythatthesizecomesinonlineornot:df-h
NEW QUESTION 34
CORRECT TEXT
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 Assigning following IP: 172.24.0.x where x is your station number.
Answer:
Explanation:
Usenetconfigcommand
EntertheIPAddressasgivenstationnumberbyyourexaminer:example:172.24.0.1
EnterSubnetMask
EnterDefaultGatewayandprimarynameserver
pressonok
ifdowneth0
ifupeth0
verifyusingifconfigInthelabserverisplayingtheroleofrouterIPforwardingisenabled.JustsettheCorrectIPandgatewayyoucanpingto172.25.254.254.
NEW QUESTION 35
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 36
CORRECT TEXT
Configure a task: plan to run echo "file" command at 14:23 every day.
Answer:
Explanation:
(a)Createdasadministrator
#crontab-unatasha-e2314***/bin/echo"file"(b)Createdasnatasha
#su-natasha$crontab-e2314***/bin/echo"file"
NEW QUESTION 37
CORRECT TEXT
The firewall must be open.
Answer:
Explanation:
/etc/init.d/iptablesstartiptables-Fiptables-Xiptables-Z/etc/init.d/iptablessavechkconfigiptableson
NEW QUESTION 38
CORRECT TEXT
Configure your NFS services. Share the directory by the NFS Shared services.
Answer:
Explanation:
/etc/init.d/rpcbindstart/etc/init.d/nfslockstart/etc/init.d/nfsstartchkconfigrpcbindonchkconfignfslockonchkconfignfsonshowmount-elocalhost
NEW QUESTION 39
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 40
CORRECT TEXT
Create a user alex with a userid of 3400. The password for this user should be redhat.
Answer:
Explanation:
useradd-u3400alex
passwdalex
su-alex
NEW QUESTION 41
......
RHCE Exam Practice Questions prepared by RedHat Professionals: https://www.actual4cert.com/RHCE-real-questions.html
Pass RHCE Exam with Latest Questions: https://drive.google.com/open?id=1TXrMeeGtV1NNMD6doB_9TkonxmFCC5tI