RHCE試験無料問題集「RedHat Red Hat Certified Engineer - RHCE 認定」

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.
正解:
cd/var/www/htmlwgethttp://instructor.example.com/pub/serverX.htmlmvserverX.htmlindex.html/etc/init.d/httpdrestartchkconfighttpdon
CORRECT TEXT
Open kmcrl value of 5 , and can verify in /proc/ cmdline
正解:
#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
CORRECT TEXT
Find the files owned by harry, and copy it to catalog: /opt/dir
正解:
#cd/opt/
#mkdirdir
#find/-userharry-execcp-rfp{}/opt/dir/\;
CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
正解:
#fdisk/dev/sdap(checkPartitiontable)n(createnewpartition:pressetocreateextendedpartitionpressptocreatethemainpartitionandtheextendedpartitionisfurtherdividedintologicalpartitions)Enter+2Gt8I82Wpartx-a/dev/sdapartprobemkswap/dev/sda8CopyUUIDswapon-avim/etc/fstabUUID=XXXXXswapswapdefaults00(swapon-s)
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.
正解:
crontab-e-unatasha2314/bin/echohiyacrontab-l-unatasha//viewsystemctlenablecrondsystemcdlrestartcrond
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?
正解:
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.
CORRECT TEXT
Add 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?/data
CORRECT TEXT
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.
正解:
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.
CORRECT TEXT
Configure 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-ladpuser40
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
正解:
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.