RedHat Red Hat Certified Engineer - RHCE - RHCE Exam Practice Test
CORRECT TEXT
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.
Correct Answer:
rpm-ivhftp://server1/example.com/pub/updates/zsh-*or
Logintoftpserver:ftpftp://server1.example.comusinganonymoususer.
Changethedirectory:cdpubandcdupdates
Downloadthepackage:mgetzsh-*
Quitfromtheftpprompt:bye
Installthepackage
rpm-ivhzsh-*
Verifyeitherpackageisinstalledornot:rpm-qzsh
Logintoftpserver:ftpftp://server1.example.comusinganonymoususer.
Changethedirectory:cdpubandcdupdates
Downloadthepackage:mgetzsh-*
Quitfromtheftpprompt:bye
Installthepackage
rpm-ivhzsh-*
Verifyeitherpackageisinstalledornot:rpm-qzsh
CORRECT TEXT
You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for encryption communication.
You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for encryption communication.
Correct Answer:
vi/etc/httpd/conf.d/ssl.conf<VirtualHost192.100.0.2>ServerNamewww.rhce.comDocumentRoot/var/www/rhceDirectoryIndexindex.htmlindex.htmServerAdminwebmaster@rhce.comSSLEngineonSSLCertificateFile/etc/httpd/conf/ssl.crt/server.crtSSLCertificateKeyFile/etc/httpd/conf/ssl.key/server.key</VirtualHost>
cd/etc/httpd/conf3maketestcert
Createthedirectoryandindexpageonspecifiedpath.(Indexpagecandownloadfromftp://server1.example.comatexamtime)
servicehttpdstart|restart
chkconfighttpdonApachecanprovideencryptedcommunicationsusingSSL(SecureSocketLayer).Tomakeuseofencryptedcommunicationaclientmustrequesttohttpsprotocolwhichisusesport443.ForHTTPSprotocolrequiredthecertificatefileandkeyfile.
cd/etc/httpd/conf3maketestcert
Createthedirectoryandindexpageonspecifiedpath.(Indexpagecandownloadfromftp://server1.example.comatexamtime)
servicehttpdstart|restart
chkconfighttpdonApachecanprovideencryptedcommunicationsusingSSL(SecureSocketLayer).Tomakeuseofencryptedcommunicationaclientmustrequesttohttpsprotocolwhichisusesport443.ForHTTPSprotocolrequiredthecertificatefileandkeyfile.
CORRECT TEXT
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Correct Answer:
below
iptables-F
serviceiptablessave
iptables-AINPUT-s172.25.0.0/16-jREJECT
serviceiptablessave
serviceiptablesrestart
iptables-F
serviceiptablessave
iptables-AINPUT-s172.25.0.0/16-jREJECT
serviceiptablessave
serviceiptablesrestart
CORRECT TEXT
Create one partitions having size 100MB and mount it on data.
Create one partitions having size 100MB and mount it on data.
Correct Answer:
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
Open kmcrl value of 5 , and can verify in /proc/ cmdline
Open kmcrl value of 5 , and can verify in /proc/ cmdline
Correct Answer:
#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
#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
Make on /archive directory that only the user owner and group owner member can fully access.
Make on /archive directory that only the user owner and group owner member can fully access.
Correct Answer:
chmod770/archive
Verifyusing:ls-ld/archivePreviewshouldbelike:drwxrwx---2rootsysuser4096Mar1618:08/archiveTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysuser)canfullyaccessthedirectoryso:chmod770/archive
Verifyusing:ls-ld/archivePreviewshouldbelike:drwxrwx---2rootsysuser4096Mar1618:08/archiveTochangethepermissionondirectoryweusethechmodcommand.Accordingtothequestionthatonlytheowneruser(root)andgroupmember(sysuser)canfullyaccessthedirectoryso:chmod770/archive
CORRECT TEXT
Upgrade the kernel, start the new kernel by default. kernel download from this address:
ftp://server1.domain10.example.com/pub/update/new.kernel
Upgrade the kernel, start the new kernel by default. kernel download from this address:
ftp://server1.domain10.example.com/pub/update/new.kernel
Correct Answer:
Downloadthenewkernelfileandtheninstallit.[root@desktop8Desktop]#lskernel-2.6.32-71.7.1.el6.x86_64.rpmkernel-firmware-2.6.32-71.7.1.el6.noarch.rpm[root@desktop8Desktop]#rpm-ivhkernel-*Preparing...###########################################[100%]1:kernel-firmware###########################################[50%]2:kernel################
#[100%]Verifythegrub.conffilewhetherusethenewkernelasthedefaultboot.[root@desktop8Desktop]
#cat/boot/grub/grub.confdefault=0titleRedHatEnterpriseLinuxServer(2.6.32-71.7.1.el6.x86_64)root(hd00)kernel/vmlinuz-2.6.32-71.7.1.el6.x86_64roroot=/dev/mapper/vol0-rootrd_LVM_LV=vol0/rootrd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietinitrd/initramfs-2.6.32-71.7.1.el6.x86_64.img
#[100%]Verifythegrub.conffilewhetherusethenewkernelasthedefaultboot.[root@desktop8Desktop]
#cat/boot/grub/grub.confdefault=0titleRedHatEnterpriseLinuxServer(2.6.32-71.7.1.el6.x86_64)root(hd00)kernel/vmlinuz-2.6.32-71.7.1.el6.x86_64roroot=/dev/mapper/vol0-rootrd_LVM_LV=vol0/rootrd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietinitrd/initramfs-2.6.32-71.7.1.el6.x86_64.img
CORRECT TEXT
User mary must configure a task.
Requirement: The local time at 14:23 every day echo "Hello World.".
User mary must configure a task.
Requirement: The local time at 14:23 every day echo "Hello World.".
Correct Answer:
crontab-umary-e2314***echo"HelloWorld."
CORRECT TEXT
Create a collaborative directory/home/admins with the following characteristics:
Group ownership of /home/admins is adminuser
The directory should be readable, writable, and accessible to members of adminuser, but not to any other user. (It is understood that root has access to all files and directories on the system.)
Files created in /home/admins automatically have group ownership set to the adminuser group
Create a collaborative directory/home/admins with the following characteristics:
Group ownership of /home/admins is adminuser
The directory should be readable, writable, and accessible to members of adminuser, but not to any other user. (It is understood that root has access to all files and directories on the system.)
Files created in /home/admins automatically have group ownership set to the adminuser group
Correct Answer:
mkdir/home/adminschgrp-Radminuser/home/adminschmodg+w/home/adminschmodg+s/home/admins
CORRECT TEXT
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
Correct Answer:
#useradd-u601-s/sbin/nologinuser1
#passwduser1redhat
#passwduser1redhat