最新的RedHat Red Hat Certified Engineer - RHCE - RHCE免費考試真題
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
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
正確答案:
#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)
#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)
CORRECT TEXT
Set cronjob for user natasha to do /bin/echo hiya at 14:23.
Set cronjob for user natasha to do /bin/echo hiya at 14:23.
正確答案:
#crontab-e-unatasha2314***/bin/echohiyawq!
CORRECT TEXT
SELinux must run in force mode.
SELinux must run in force mode.
正確答案:
/etc/sysconfig/selinuxSELINUX=enforcing
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
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
Please open the ip_forward, and take effect permanently.
Please open the ip_forward, and take effect permanently.
正確答案:
vim/etc/sysctl.confnet.ipv4.ip_forward=1
sysctl-w(takeseffectimmediately)Ifno"sysctl.conf"optionusethesecommands:
sysctl-a|grepnet.ipv4
sysctl-Pnet.ipv4.ip_forward=1
sysctl-w
sysctl-w(takeseffectimmediately)Ifno"sysctl.conf"optionusethesecommands:
sysctl-a|grepnet.ipv4
sysctl-Pnet.ipv4.ip_forward=1
sysctl-w
CORRECT TEXT
Create a user alex with a userid of 3400. The password for this user should be redhat.
Create a user alex with a userid of 3400. The password for this user should be redhat.
正確答案:
useradd-u3400alex
passwdalex
su-alex
passwdalex
su-alex
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.
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
Configure a user account.
Create a user iar , uid is 3400. Password is redhat
Configure a user account.
Create a user iar , uid is 3400. Password is redhat
正確答案:
useradd-u3400iarpasswdiar
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 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.