SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
RHCE: Red Hat Certified Engineer
Start Test
Study First
Subjects
:
certifications
,
it-skills
,
rhce
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
dumpe2fs
ServerAdmin
comps.xml (comps.xml file in the /usr/share/comps/i386 directory - -- or Web Server package group - as documented on the first installation CD in the Server/repodatata/comps-rhel5-server-core.xml file)
filesystem type is not ext2 or ext3
2. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
service vsftpd status
yum update kernel
fdisk
rpm -ivh --replacepkgs xxxx*
3. rpm ____ to install kernel updates
/etc/lvmtab
ServerTokens
-i (do not use -U or -F!)
dumpe2fs
4. _____ will change the size of /dev/rootvg/tmplv to 4 gig
mke2fs
lvextend -L4G /dev/rootvg/tmplv
Yes
yum install httpd
5. Virtual Host Configuration: Sets a root directory for the virtual host.
DocumentRoot
/etc/lvmtab
system-config-firewall
/etc/httpd/conf/
6. rpm option to show me the package files
/boot
-l
dumpe2fs
filesystem type is not ext2 or ext3
7. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
chkconfig --list httpd
/boot
(rpm -q)p file (for rpmfile name)
/var/ftp/pub
8. httpd ___ shows me what config files were installed when the httpd package was installed
yum -y update
pirut
rpm -qc
yum update kernel
9. what utility can be used to open port 80?
system-config-firewall
elinks
parted; check x
parted /dev/hda print
10. what port needs to be open to access ftp?
port 21
fdisk
chmod 705
lvextend -L4G /dev/rootvg/tmplv
11. How to start the vsftp service automatically on boot?
chkconfig --level 35 httpd on
DocumentRoot
yum install mod_ssl squid
chkconfig vsftpd on
12. rpm ____ to import the rpm key for integrity checking
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
lvextend -L4G /dev/rootvg/tmplv
service vsftpd status
--import file
13. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
e2fsadm
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
squid -z
/etc/squid/
14. For SELinux - you'll at least want to use the Security Level Configuration tool to activate the Allow Squid Daemon To Connect To The Network option - also known as the squid_connect_any boolean. Alternatively - you can activate this boolean with the
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
NameVirtualHost
rpm -e zip
15. For linux ext2 there is an easier way than using resize2fs. LVM 1 ships with a utility called __________ which does the lvextend and resize2fs for you (it can also do file system shrinking)
parted; mklabel k
nfs
e2fsadm
yum -y update
16. You can check the status of your share. If it's working - you should see the contents of the /etc/exports directory when you run the following command:
showmount -e
parted; check x
yum install httpd
/etc/vsftpd
17. As you may not have access to the GUI during the Red Hat exams - you need to know how to use text-based browsers. The standard is ____
/etc/squid/
rpm -ivh --replacepkgs xxxx*
elinks
dumpe2fs
18. If you configure other directories for Web services - you'll need to change their ACL settings. For example - if you create and then use the /www directory - run the following commands:
chmod 701
squid -z
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
19. What is the standard directory for file sharing with vsFTP?
rpm -ivh --replacepkgs xxxx*
rpm -V
var/ftp/pub
yum install httpd
20. Use grep to count how many repositories have been configured in the file server1.repo
21. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
ErrorLog
yum update kernel
chmod 701
(rpm -q)p file (for rpmfile name)
22. The simplest way to install Apache
yum install mod_ssl squid
yum install httpd
resize2fs
lvextend -L4G /dev/rootvg/tmplv
23. ____ configuration is not available via text mode RHEL installation.
ServerName
yum install mod_ssl squid
LVM
resize2fs
24. When you configure Squid on your system - you need to allow access through appropriate ports and SELinux settings. The simplest approach with respect to Squid configuration assumes that all clients use the default Squid port 3128 - using TCP - where
system-config-firewall
/etc/init.d/vsftpd start
rpm -V
iptables
25. ____ is used to modify file system parameters
parted; mklabel k
setsebool -P squid_connect_any 1
tune2fs
chkconfig --level 35 httpd on
26. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
setsebool -P squid_connect_any 1
yum install httpd
ls -Z
27. ____ is used for creating ext2 and ext3 file systems
mke2fs
select (followed by the device name such as /dev/hdb)
/ (root) - /boot and linux swap
dd if=./diskboot.img of=/dev/sdc
28. How to make sure apache starts automatically on next reboot?
/etc/init.d/httpd restart
/etc/lvmtab
chmod 705
chkconfig httpd on
29. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
var/ftp/pub
(rpm -q)p file (for rpmfile name)
CustomLog
30. Tthe file that might contain: oldvg - rootvg - etc.
Yes
DocumentRoot
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/lvmtab
31. ____ can expand and shrink ext2 and ext3 file systems
ServerName
5
mke2fs
resize2fs
32. To list under which run levels the web service will start
rpm -qc
chkconfig --list httpd
/ (root) - /boot and linux swap
/boot
33. Create a disk label for the partition table called k
DocumentRoot
chkconfig httpd on
resize2fs /dev/myvg/homevol
parted; mklabel k
34. You need to configure firewalls and allow SELinux access in appropriate ways. Firewalls must allow access to the standard HTTP port - 80. SELinux must be configured to 'Allow HTTPD To Read Home Directories'. Finally - the ACL must be revised accordin
DocumentRoot
port 21
yum install httpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
35. Virtual Host Configuration: Names the URL for the virtual host.
/etc/vsftpd
CustomLog
ServerName
wget (http://devmon.dev.schwab.com/index.html)
36. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
nfs
parted; check x
NameVirtualHost
yum install mod_ssl squid
37. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
yum -y update
setsebool -P htttpd.enable.homedirs 1
DocumentRoot
5
38. rpm ____ verifies the installed zip rpm against the rpm database
nfs
rpm -V zip
AllowOverride
iptables -F
39. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
/etc/httpd/conf/
LVM
ErrorLog
rpm -V
40. To update a kernel - 1) ____ 2) boot new kernel to test 3) revert to old kernel if problems 4) yum remove kernel-oldversion if no problems
AllowOverride
yum update kernel
ServerName
parted; mklabel k
41. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
rpm -Va
filesystem type is not ext2 or ext3
rpm -e zip
setsebool -P htttpd.enable.homedirs 1
42. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
/etc/init.d/httpd restart
chmod 705
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
wget (http://devmon.dev.schwab.com/index.html)
43. To check status of ftp daemon
showmount -e
CustomLog
/ (root) - /boot and linux swap
service vsftpd status
44. The default Red Hat Enterprise Linux firewall blocks access to an NFS server. While inelegant - the following command 'flushes -' or turns off - the standard Linux firewall from the local computer.
/media/repodata
iptables -F
system-config-firewall
/etc/vsftpd
45. Where is the config dir for vsftpd?
setsebool -P squid_connect_any 1
e2fsadm
comps.xml (comps.xml file in the /usr/share/comps/i386 directory - -- or Web Server package group - as documented on the first installation CD in the Server/repodatata/comps-rhel5-server-core.xml file)
/etc/vsftpd
46. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
Yes
port 21
select (followed by the device name such as /dev/hdb)
47. I just ran rpm -ivh zip-2.3-8.i386.rpm .. whooops - now I don't want this on my system so to get it off via rpm I type ____
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
lvextend -L4G /dev/rootvg/tmplv
rpm -e zip
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
48. The RPM database also maintains an MD5 checksum of each file. With the checksum - you can use the ____ package command to determine whether any file from that RPM package has changed.
/etc/squid/
rpm -V
First boot process
Yes
49. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
rpm -V zip
e2fsadm
port 21
50. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
yum install httpd
lvextend -L4G /dev/rootvg/tmplv
service vsftpd status