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. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
htpasswd -c /etc/httpd/webpass e
service vsftpd status
NameVirtualHost
chmod 701
2. How to install vsftpd?
yum install vsftpd
showmount -a
/boot
resize2fs /dev/myvg/homevol
3. what utility can be used to open port 80?
system-config-firewall
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted /dev/hda print
4. 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)
telnetd : ALL EXCEPT 192.168.1.10
/etc/vsftpd
/etc/httpd/conf/
5. ____ prints superblock and block group information.
dumpe2fs
system-config-firewall
service vsftpd status
NameVirtualHost
6. httpd ___ shows me what config files were installed when the httpd package was installed
--import file
rpm -qc
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ErrorLog
7. rpm ____ to import the rpm key for integrity checking
/etc/vsftpd
--import file
/etc/httpd/conf/
tune2fs
8. How to disable the firewall on the current system?
5
iptables -F
htpasswd -c /etc/httpd/webpass e
iptables -F
9. 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
squid -z
rpm -V
setsebool -P squid_connect_any 1
telnetd : ALL EXCEPT 192.168.1.10
10. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
rpm -Va
ssh
/etc/vsftpd
11. 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)
/media/repodata
LVM
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
CustomLog
12. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
resize2fs /dev/myvg/homevol
chmod 705
ServerTokens
chcon -R -t httpd_sys_content_t /home/michael/public_html
13. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chmod 705
chkconfig --level 35 httpd on
DocumentRoot
14. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V
grep '[.*]' server1.repo
(rpm -q)p file (for rpmfile name)
rpm -V zip
15. You can use the ____ tool after installation to add any package groups that you missed.
rpm -V zip
AllowOverride
wget (http://devmon.dev.schwab.com/index.html)
pirut
16. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
fdisk
AllowOverride
system-config-firewall
17. What service is allowed through the default firewall?
/etc/init.d/httpd start
lvdisplay -D /dev/rootvg/tmplv
ssh
setup
18. How to start apache service?
/etc/init.d/httpd start
/etc/init.d/vsftpd start
dd if=./diskboot.img of=/dev/sdc
yum clean all
19. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
CustomLog
/var/ftp/pub
pirut
20. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
/ (root) - /boot and linux swap
nfs
yum install mod_ssl squid
21. httpd ___ to update the httpd package - automatically answering yes to all the questions
/var/ftp/pub
yum -y update
parted; mklabel k
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
22. To list under which run levels the web service will start
iptables
fdisk -l
chkconfig --list httpd
DocumentRoot
23. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
pirut
chkconfig httpd on
grep '[.*]' server1.repo
24. Where is vsftpd.conf?
elinks
fdisk -l
yum clean all
/etc/vsftpd
25. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
grep '[.*]' server1.repo
yum clean all
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
26. 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
/var/ftp/pub
(rpm -q)p file (for rpmfile name)
yum install httpd
27. To install both mod_ssl and squid packages
NameVirtualHost
yum install mod_ssl squid
var/www/html
-l
28. 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
Yes
chkconfig httpd on
iptables
--import file
29. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
ServerName
NameVirtualHost
mke2fs
30. Virtual Host Configuration: Names the URL for the virtual host.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerName
yum clean all
rpm -qc
31. rpm ____ [name of package] to verify the package - once you have manually imported the key
fdisk -l
-K
/etc/init.d/httpd restart
setsebool -P htttpd.enable.homedirs 1
32. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
service vsftpd status
rpm -ivh --replacepkgs xxxx*
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
AllowOverride
33. 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:
e2fsadm
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
dd if=./diskboot.img of=/dev/sdc
chcon -R -t httpd_sys_content_t /home/michael/public_html
34. 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
elinks
yum update kernel
rpm -Va
setsebool -P htttpd.enable.homedirs 1
35. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
/etc/init.d/httpd start
tune2fs
chmod 701
36. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
chkconfig --list httpd
parted /dev/hda print
Yes
37. The rpm ____ option installs the package - if it isn't already installed.
select (followed by the device name such as /dev/hdb)
yum install httpd
-i
chkconfig --list httpd
38. How do you restart the apache web server?
/etc/vsftpd
fdisk -l
/etc/init.d/httpd restart
/etc/squid/
39. ____ configuration is not available via text mode RHEL installation.
ServerAdmin
yum install httpd
/etc/init.d/httpd start
LVM
40. How to start the vsftp service?
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -F
/etc/init.d/vsftpd start
telnetd : ALL EXCEPT 192.168.1.10
41. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
parted; check x
rpm -V
yum install httpd
42. 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.
fdisk -l
First boot process
parted; check x
iptables -F
43. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum -y update
port 21
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum clean all
44. Are SELinux and iptables-based firewalls are enabled by default?
chcon -R -t httpd_sys_content_t /home/michael/public_html
Yes
port 21
rpm -V
45. In httpd.conf - '____ None' disables any .htaccess files. Otherwise - .htaccess can allow others to administer your server - starting from the DocumentRoot directory. If .htaccess is in a subdirectory - such as /var/www/html/data/ - the additional di
ErrorLog
CustomLog
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)
AllowOverride
46. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
chkconfig --level 35 httpd on
Yes
parted /dev/hda print
47. Where is the main apache data directory?
select (followed by the device name such as /dev/hdb)
NameVirtualHost
var/www/html
/etc/squid/
48. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
AllowOverride
dd if=./diskboot.img of=/dev/sdc
setsebool -P htttpd.enable.homedirs 1
telnetd : ALL EXCEPT 192.168.1.10
49. The main Squid configuration file is ____/squid.conf
iptables -F
/etc/squid/
-K
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
50. 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:
yum install mod_ssl squid
htpasswd -c /etc/httpd/webpass e
-i (do not use -U or -F!)
chmod 705