RHCE 無料問題集「RedHat Red Hat Certified Engineer - RHCE」

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
正解:
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.
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
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data.
正解:
#pvcreate/dev/sda7/dev/sda8
#vgcreate-s16Mvg1/dev/sda7/dev/sda8
#lvcreate-l50-nlvm02
#mkfs.ext4/dev/vg1/lvm02
#blkid/dev/vg1/lv1
#vim/etc/fstab
#mkdir-p/mnt/dataUUID=xxxxxxxx/mnt/dataext4defaults00
#vim/etc/fstab
#mount-a
#mount(Verify)
CORRECT TEXT
Notes:
NFS : NFS instructor.example.com:/var/ftp/pub/rhel6/dvd
YUM : http://instructor.example.com/pub/rhel6/dvd
ldap : http : //instructor.example.com/pub/EXAMPLE-CA-CERT
Install dialog package.
正解:
yum install dialog
CORRECT TEXT
Create User Account.
Create the following user, group and group membership:
Adminuser group
User natasha, using adminuser as a sub group
User Harry, also using adminuser as a sub group
User sarah, can not access the SHELL which is interactive in the system, and is not a member of adminuser, natasha , harry , sarah password is redhat.
正解:
groupaddadminuseruseraddnatasha-Gadminuseruseraddharyy-Gadminuseruseraddsarah-s/sbin/nologinPasswdusername//tomodifypasswordorechoredhat|passwd--stdinusernameidnatasha//toviewusergroup.
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.
正解:
Usenetconfigcommand
EntertheIPAddressasgivenstationnumberbyyourexaminer:example:172.24.0.1
EnterSubnetMask
EnterDefaultGatewayandprimarynameserver
pressonok
ifdowneth0
ifupeth0
verifyusingifconfigInthelabserverisplayingtheroleofrouterIPforwardingisenabled.JustsettheCorrectIPandgatewayyoucanpingto172.25.254.254.
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.
正解:
(1)find/etc-size10k-execcp{}/tmp/findfiles\;(2)find/-userlucy-execcp-a{}/tmp/findfiles\;Note:Iffindusersandpermissionsyouneedtousecp-aoptionstokeepfilepermissionsanduserattributesetc.
CORRECT TEXT
Create one partitions having size 100MB and mount it on data.
正解:
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
CORRECT TEXT
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
a. when user try to access, automatically should mount
b. when user doesn't use mounted directory should unmount automatically after 50 seconds.
c. shared directory should mount on /mnt/data on your machine.
正解:
1.vi/etc/auto.master/mnt/etc/auto.misc--timeout=50
vi/etc/auto.misc
data-rwsoftintrserver1.example.com:/data
serviceautofsrestart
chkconfigautofsonWhenyoumounttheotherfilesystemyoushouldunmountthemountedfilesystemAutomountfeatureoflinuxhelpstomountataccesstimeandaftercertainsecondswhenuserunaccessthemounteddirectoryautomaticallyunmountthefilesystem./etc/auto.masteristhemasterconfigurationfileforautofsservice.Whenyoustarttheserviceitreadsthemountpointasdefinedin/etc/auto.master.
CORRECT TEXT
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)
正解:
#vgdisplay(Checkthecapacityofvgifthecapacityisnotenoughneedtocreatepvvgextendlvextend)
#lvdisplay(Checklv)
#lvextend-L+110M/dev/vg2/lv2
#resize2fs/dev/vg2/lv2mount-a(Verify)-------------------------------------------------------------------------------(Decreaselvm)
#umount/media
#fsck-f/dev/vg2/lv2
#resize2fs-f/dev/vg2/lv2100M
#lvreduce-L100M/dev/vg2/lv2
#mount-a
#lvdisplay(Verify)OR
#e2fsck-f/dev/vg1/lvm02
#resize2fs-f/dev/vg1/lvm02
#mount/dev/vg1/lvm01/mnt
#lvreduce-L1G-n/dev/vg1/lvm02
#lvdisplay(Verify)

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡