[Mar 08, 2023] Latest RHCE Certification RHCE Actual Free Exam Questions [Q55-Q78]

Share

[Mar 08, 2023] Latest RHCE Certification RHCE Actual Free Exam Questions

RHCE Certification RHCE Dumps Updated Practice Test and 111 unique questions

NEW QUESTION 55
CORRECT TEXT
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?

Answer:

Explanation:
echo"1">/proc/sys/net/ipv4/ip_forward
vi/etc/sysctl.confnet.ipv4.ip_forward=1IfyouwanttousetheLinuxSystemasaRoutertomakecommunicationbetweendifferentnetworksyouneedenabletheIPforwarding.Toenableonrunningsessionjustsetvalue1to/proc/sys/net/ipv4/ip_forward.AswellasautomaticallyturnontheIPforwardingfeaturesonnextbootseton/etc/sysctl.conffile.

 

NEW QUESTION 56
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.

Answer:

Explanation:
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

 

NEW QUESTION 57
CORRECT TEXT
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.

Answer:

Explanation:
TheLVMsystemorganizesharddisksintoLogicalVolume(LV)groups.Essentiallyphysicalharddiskpartitions(orpossiblyRAIDarrays)aresetupinabunchofequalsizedchunksknownasPhysicalExtents(PE).AsthereareseveralotherconceptsassociatedwiththeLVMsystemlet'sstartwithsomebasicdefinitions:PhysicalVolume(PV)isthestandardpartitionthatyouaddtotheLVMmix.Normallyaphysicalvolumeisastandardprimaryorlogicalpartition.ItcanalsobeaRAIDarray.PhysicalExtent(PE)isachunkofdiskspace.EveryPVisdividedintoanumberofequalsizedPEs.EveryPEinaLVgroupisthesamesize.DifferentLVgroupscanhavedifferentsizedPEs.LogicalExtent(LE)isalsoachunkofdiskspace.EveryLEismappedtoaspecificPE.LogicalVolume(LV)iscomposedofagroupofLEs.Youcanmountafilesystemsuchas/homeand/varonanLV.VolumeGroup(VG)iscomposedofagroupofLVs.ItistheorganizationalgroupforLVM.Mostofthecommandsthatyou'lluseapplytoaspecificVG.
VerifythesizeofLogicalVolume:lvdisplay/dev/vg0/lv1
VerifytheSizeonmounteddirectory:df-hordf-hmounteddirectoryname
Use:lvextend-L+400M/dev/vg0/lv1
ext2online-d/dev/vg0/lv1tobringextendedsizeonline.
AgainVerifyusinglvdisplayanddf-hcommand.

 

NEW QUESTION 58
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 59
CORRECT TEXT
A YUM source has been provided in the http://instructor.example.com/pub/rhel6/dvd
Configure your system and can be used normally.

Answer:

Explanation:
/etc/yum.repos.d/base.repo[base]name=basebaseurl=http://instructor.example.com/pub/rhel6/dvdgpgcheck=0yumlist

 

NEW QUESTION 60
CORRECT TEXT
Configure a user account.
Create a user iar , uid is 3400. Password is redhat

Answer:

Explanation:
useradd-u3400iarpasswdiar

 

NEW QUESTION 61
CORRECT TEXT
Configure the system synchronous as 172.24.40.10.

Answer:

Explanation:
GraphicalInterfaces:System-->Administration-->Date&TimeOR
#system-config-date

 

NEW QUESTION 62
CORRECT TEXT
Make on /archive directory that only the user owner and group owner member can fully access.

Answer:

Explanation:
chmod770/archive
Verifyusing:ls-ld/archivePreviewshouldbelike:drwxrwx---2rootsysuser4096Mar1618:08/archiveTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysuser)canfullyaccessthedirectoryso:chmod770/archive

 

NEW QUESTION 63
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 64
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 65
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 66
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 67
CORRECT TEXT
Add a new logical partition having size 100MB and create the data which will be the mount point for the new partition.

Answer:

Explanation:
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?/data

 

NEW QUESTION 68
CORRECT TEXT
User mary must configure a task.
Requirement: The local time at 14:23 every day echo "Hello World.".

Answer:

Explanation:
crontab-umary-e2314***echo"HelloWorld."

 

NEW QUESTION 69
CORRECT TEXT
Configure your Host Name, IP Address, Gateway and DNS.
Host name: station.domain40.example.com
/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

Answer:

Explanation:
#cd/etc/syscofig/network-scripts/
#ls
#vimifcfg-eth0(ConfigureIPAddressGatewayandDNS)IPADDR=172.24.40.40GATEWAY=172.24.40.1DNS1=172.24.40.1
#vim/etc/sysconfig/network(ConfigureHostName)HOSTNAME=station.domain40.example.comORGraphicalInterfaces:System->Preference->NetworkConnections(ConfigureIPAddressGatewayandDNS)Vim/etc/sysconfig/network(ConfigureHostName)

 

NEW QUESTION 70
CORRECT TEXT
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.

Answer:

Explanation:
Usefdisk/dev/hda->Tocreatenewpartition.
Typen->ForNewpartition
ItwillaskforLogicalorPrimaryPartitions.Presslforlogical.
ItwillaskfortheStartingCylinder:UsetheDefaultbypressingEnterKey.
TypetheSize:+100M->YoucanSpecifyeitherLastcylinderofSizehere.
PressPtoverifythepartitionslistsandrememberthepartitionsname.DefaultSystemIDis83thatmeansLinuxNative.
TypettochangetheSystemIDofpartition.
TypePartitionNumber
Type82thatmeansLinuxSwap.
Presswtowriteonpartitionstable.
EitherRebootorusepartprobecommand.
mkswap/dev/hda?->TocreateSwapFilesystemonpartition.
swapon/dev/hda?->ToenabletheSwapspacefrompartition.
free-m->VerifyEitherSwapisenabledornot.
vi/etc/fstab/dev/hda?swapswapdefaults00
ReboottheSystemandverifythatswapisautomaticallyenabledornot.

 

NEW QUESTION 71
CORRECT TEXT
SELinux must run in force mode.

Answer:

Explanation:
/etc/sysconfig/selinuxSELINUX=enforcing

 

NEW QUESTION 72
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 73
CORRECT TEXT
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP Forwarding.
1. echo "1" >/proc/sys/net/ipv4/ip_forward
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1

Answer:

Explanation:
/procisthevirtualfilesystemcontainingtheinformationabouttherunningkernel.Tochangetheparameterofrunningkernelyoushouldmodifyon/proc.FromNextrebootthesystemkernelwilltakethevaluefrom/etc/sysctl.conf.

 

NEW QUESTION 74
CORRECT TEXT
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat

Answer:

Explanation:
#useradd-Gadminuser2
#useradd-Gadminuser3
#passwduser2redhat
#passwduser3redhat

 

NEW QUESTION 75
CORRECT TEXT
Locate all the files owned by ira and copy them to the / root/findresults directory.

Answer:

Explanation:
#find/-userira>/root/findresults(if/root/findfilesisafile)
#mkdir-p/root/findresults
#find/-userira-execcp-a{}/root/findresults\;[if/root/findfilesisadirectory]ls/root/findresults

 

NEW QUESTION 76
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 77
CORRECT TEXT
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.

Answer:

Explanation:
Createapartitionhavingsize5GBandchangethesysteid'8e'.
usepartprobecommand
pvcreate/dev/hda9Supposeyourpartitionnumberishda9.
vgextendtest0/dev/hda9vgextendcommandaddthephysicaldiskonvolumegroup.
lvextend-L+5120M/dev/test0/lvtestvolume
verifyusinglvdisplay/dev/test0/lvtestvolume.

 

NEW QUESTION 78
......

Verified RHCE dumps Q&As - 100% Pass from Actualtests4sure: https://www.actualtests4sure.com/RHCE-test-questions.html

Latest 100% Exam Passing Ratio - RHCE Dumps PDF: https://drive.google.com/open?id=1-62PkI8px_HrRMvTrb3-9TQt--7R2_5-