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. If in doubt about package names - you can find them in the ...
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -qc
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/lvmtab
2. Apache supports security by specifying active ports through the Listen and ____ directives.
elinks
NameVirtualHost
/etc/init.d/httpd restart
rpm -Va
3. '____ /var/www' will tell you the ACL settings of /var/www
setsebool -P htttpd.enable.homedirs 1
dumpe2fs
var/www/html
ls -Z
4. OS from http.conf - this line looks deceptively simple; it limits what readers see about your Web server when you browse to a nonexistent page. If you don't use this command - outsiders can see whether you've loaded modules such as Perl - Python - an
ssh
ServerTokens
rpm -V zip
chmod 705
5. Use parted to display disk geometry for /dev/hda and end up in shell
yum install vsftpd
-i (do not use -U or -F!)
parted /dev/hda print
setup
6. What is the first post installation step?
fdisk
chkconfig --level 35 httpd on
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
First boot process
7. 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)
/etc/init.d/httpd restart
/ (root) - /boot and linux swap
elinks
e2fsadm
8. Virtual Host Configuration: Names the URL for the virtual host.
yum -y update
yum install httpd
ServerName
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
9. Are SELinux and iptables-based firewalls are enabled by default?
Yes
fdisk -l
yum clean all
filesystem type is not ext2 or ext3
10. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
fdisk -l
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
11. To list under which run levels the web service will start
chkconfig --list httpd
yum clean all
LVM
tune2fs
12. 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
ServerName
Yes
rpm -e zip
chcon -R -t httpd_sys_content_t /home/michael/public_html
13. The simplest way to install Apache
parted /dev/hda print
yum install httpd
ssh
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
14. ____ configuration is not available via text mode RHEL installation.
grep '[.*]' server1.repo
chkconfig vsftpd on
ssh
LVM
15. ____ is used for creating ext2 and ext3 file systems
mke2fs
telnetd : ALL EXCEPT 192.168.1.10
elinks
system-config-firewall
16. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
ssh
lvdisplay -D /dev/rootvg/tmplv
/etc/lvmtab
/etc/squid/
17. Where is the vsftp pub dir?
setsebool -P htttpd.enable.homedirs 1
dd if=./diskboot.img of=/dev/sdc
/var/ftp/pub
setup
18. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
yum update kernel
pirut
chkconfig --list httpd
19. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
yum update kernel
DocumentRoot
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)
/media/repodata
20. 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
fdisk -l
setsebool -P squid_connect_any 1
/etc/init.d/httpd restart
mke2fs
21. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd start
5
22. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
yum update kernel
-l
First boot process
23. To check status of ftp daemon
htpasswd -c /etc/httpd/webpass e
service vsftpd status
ErrorLog
rpm -qc
24. If you want to create a database file named webpass in the /etc/httpd directory - for user 'e' - you'd start with the following command:
/etc/init.d/httpd start
tune2fs
htpasswd -c /etc/httpd/webpass e
/etc/init.d/vsftpd start
25. rpm ____ to install kernel updates
chkconfig vsftpd on
iptables
-i (do not use -U or -F!)
system-config-firewall
26. How to start the vsftp service?
/etc/init.d/vsftpd start
CustomLog
ErrorLog
parted; mklabel k
27. httpd ___ shows me what config files were installed when the httpd package was installed
--import file
rpm -qc
fdisk
resize2fs
28. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
lvdisplay -D /dev/rootvg/tmplv
port 21
chmod 701
ssh
29. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
/etc/init.d/vsftpd start
fdisk -l
chkconfig --level 35 httpd on
yum -y update
30. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
setsebool -P squid_connect_any 1
NameVirtualHost
/etc/vsftpd
31. To install both mod_ssl and squid packages
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install mod_ssl squid
First boot process
chkconfig --list httpd
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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerAdmin
-l
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
33. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
rpm -qc
port 21
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
dd if=./diskboot.img of=/dev/sdc
34. After you edit /etc/exports - run service ___ stop...
wget (http://devmon.dev.schwab.com/index.html)
chkconfig httpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
nfs
35. What service is allowed through the default firewall?
elinks
setup
/ (root) - /boot and linux swap
ssh
36. 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
yum update kernel
service vsftpd status
/boot
grep '[.*]' server1.repo
37. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
setsebool -P htttpd.enable.homedirs 1
resize2fs /dev/myvg/homevol
5
elinks
38. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
rpm -qc
(rpm -q)p file (for rpmfile name)
/etc/vsftpd
service vsftpd status
39. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
elinks
tune2fs
setsebool -P squid_connect_any 1
fdisk
40. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
ErrorLog
lvdisplay -D /dev/rootvg/tmplv
rpm -V
41. 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
fdisk -l
chkconfig --level 35 httpd on
squid -z
42. 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 ____
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
elinks
htpasswd -c /etc/httpd/webpass e
CustomLog
43. 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
iptables
resize2fs /dev/myvg/homevol
select (followed by the device name such as /dev/hdb)
fdisk -l
44. You can use the ____ tool after installation to add any package groups that you missed.
filesystem type is not ext2 or ext3
showmount -e
system-config-firewall
pirut
45. How to start apache service?
squid -z
rpm -e zip
/etc/vsftpd
/etc/init.d/httpd start
46. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -V
ErrorLog
showmount -e
yum install vsftpd
47. 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:
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/init.d/httpd start
showmount -e
port 21
48. Where to find the main apache config file?
/etc/httpd/conf/
/etc/init.d/vsftpd start
ssh
rpm -V
49. How to install apache?
-K
iptables -F
yum install httpd
mke2fs
50. The rpm ____ option installs the package - if it isn't already installed.
grep '[.*]' server1.repo
service vsftpd status
-i
iptables -F