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. ____ can expand and shrink ext2 and ext3 file systems
rpm -Va
chmod 705
yum install mod_ssl squid
resize2fs
2. Virtual Host Configuration: Names the URL for the virtual host.
htpasswd -c /etc/httpd/webpass e
ServerName
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
iptables
3. ____ configuration is not available via text mode RHEL installation.
ServerName
service vsftpd status
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)
LVM
4. 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
select (followed by the device name such as /dev/hdb)
dd if=./diskboot.img of=/dev/sdc
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/vsftpd start
5. To install both mod_ssl and squid packages
fdisk -l
filesystem type is not ext2 or ext3
yum install mod_ssl squid
lvdisplay -D /dev/rootvg/tmplv
6. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
chkconfig --list httpd
-i
filesystem type is not ext2 or ext3
ErrorLog
7. pam ___ will tell me if any files in the pam package have changed since it was first installed
dumpe2fs
fdisk
rpm -V
First boot process
8. Where is the config dir for vsftpd?
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
/etc/vsftpd
ls -Z
9. rpm ____ [name of package] to verify the package - once you have manually imported the key
setsebool -P squid_connect_any 1
/etc/init.d/vsftpd start
showmount -e
-K
10. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
yum install mod_ssl squid
chcon -R -t httpd_sys_content_t /home/michael/public_html
ErrorLog
fdisk
11. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
ssh
showmount -a
yum install httpd
rpm -V
12. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
dumpe2fs
ssh
LVM
13. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chmod 701
chmod 705
yum install vsftpd
ServerAdmin
14. 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 ____
fdisk -l
ErrorLog
elinks
dd if=./diskboot.img of=/dev/sdc
15. This line placed in /etc/hosts.deny will mean that only computer allowed to access our Telnet server has an IP address of 192.168.1.10
telnetd : ALL EXCEPT 192.168.1.10
showmount -e
chmod 705
AllowOverride
16. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
fdisk
select (followed by the device name such as /dev/hdb)
ssh
17. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -e zip
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs
18. What is the first post installation step?
showmount -e
First boot process
iptables -F
filesystem type is not ext2 or ext3
19. Where is the main apache data directory?
chcon -R -t httpd_sys_content_t /home/michael/public_html
telnetd : ALL EXCEPT 192.168.1.10
var/www/html
NameVirtualHost
20. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chkconfig --level 35 httpd on
(rpm -q)p file (for rpmfile name)
21. How to start the vsftp service automatically on boot?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig vsftpd on
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
setsebool -P squid_connect_any 1
22. To list under which run levels the web service will start
telnetd : ALL EXCEPT 192.168.1.10
system-config-firewall
chkconfig --list httpd
/etc/init.d/httpd restart
23. rpm option to show me the package files
Yes
mke2fs
(rpm -q)p file (for rpmfile name)
-l
24. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
yum update kernel
lvdisplay -D /dev/rootvg/tmplv
wget (http://devmon.dev.schwab.com/index.html)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
25. Virtual Host Configuration: Creates an custom log; the location is based on the DocumentRoot. (from http://www.books24x7.com/book/id_18196/viewer.asp?bookid=18196&chunkid=218985502)
CustomLog
select (followed by the device name such as /dev/hdb)
(rpm -q)p file (for rpmfile name)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
26. If in doubt about package names - you can find them in the ...
iptables -F
lvdisplay -D /dev/rootvg/tmplv
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)
ErrorLog
27. 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)
NameVirtualHost
resize2fs /dev/myvg/homevol
chmod 705
28. This line placed in /etc/hosts.deny sends a customized error message for Telnet users on the crack.org domain saying sorry [insert client info] - access denied
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
-l
service vsftpd status
29. httpd ___ to update the httpd package - automatically answering yes to all the questions
nfs
yum -y update
rpm -e zip
rpm -Va
30. Are SELinux and iptables-based firewalls are enabled by default?
dumpe2fs
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)
Yes
31. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
(rpm -q)p file (for rpmfile name)
ServerName
setsebool -P htttpd.enable.homedirs 1
port 21
32. 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:
ErrorLog
ssh
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -Va
33. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
-i (do not use -U or -F!)
/etc/init.d/httpd start
system-config-firewall
NameVirtualHost
34. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
rpm -V zip
yum install vsftpd
5
35. Where to find the main apache config file?
pirut
rpm -qc
/etc/httpd/conf/
ErrorLog
36. The main Squid configuration file is ____/squid.conf
/etc/squid/
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ls -Z
iptables
37. 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
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ssh
setsebool -P squid_connect_any 1
NameVirtualHost
38. 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.
rpm -V
dd if=./diskboot.img of=/dev/sdc
LVM
rpm -e zip
39. 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.
iptables
var/www/html
iptables -F
ErrorLog
40. To check status of ftp daemon
wget (http://devmon.dev.schwab.com/index.html)
/etc/lvmtab
iptables -F
service vsftpd status
41. ____ is used to modify file system parameters
tune2fs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
dd if=./diskboot.img of=/dev/sdc
port 21
42. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
fdisk -l
yum install vsftpd
iptables
43. Where is vsftpd.conf?
parted /dev/hda print
pirut
/etc/init.d/httpd start
/etc/vsftpd
44. What service is allowed through the default firewall?
rpm -e zip
ssh
port 21
lvdisplay -D /dev/rootvg/tmplv
45. Where is the vsftp pub dir?
dd if=./diskboot.img of=/dev/sdc
/var/ftp/pub
-l
/etc/vsftpd
46. You can use the ____ tool after installation to add any package groups that you missed.
squid -z
yum install mod_ssl squid
pirut
parted /dev/hda print
47. The rpm ____ option installs the package - if it isn't already installed.
dd if=./diskboot.img of=/dev/sdc
fdisk
parted; check x
-i
48. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
iptables -F
5
parted; mklabel k
chkconfig --level 35 httpd on
49. 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 -e zip
iptables
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted; check x
50. How to install apache?
LVM
rpm -ivh --replacepkgs xxxx*
yum install httpd
resize2fs