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 you want to create a database file named webpass in the /etc/httpd directory - for user 'e' - you'd start with the following command:
(rpm -q)p file (for rpmfile name)
ServerAdmin
htpasswd -c /etc/httpd/webpass e
select (followed by the device name such as /dev/hdb)
2. How to start the vsftp service?
parted; check x
/etc/init.d/vsftpd start
resize2fs /dev/myvg/homevol
yum -y update
3. How do you restart the apache web server?
/etc/init.d/httpd restart
chcon -R -t httpd_sys_content_t /home/michael/public_html
port 21
chmod 705
4. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
First boot process
chcon -R -t httpd_sys_content_t /home/michael/public_html
/media/repodata
5. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
wget (http://devmon.dev.schwab.com/index.html)
showmount -a
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
showmount -e
6. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
resize2fs /dev/myvg/homevol
setsebool -P squid_connect_any 1
ServerTokens
7. httpd ___ shows me what config files were installed when the httpd package was installed
CustomLog
squid -z
rpm -qc
select (followed by the device name such as /dev/hdb)
8. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
system-config-firewall
parted; mklabel k
yum clean all
var/www/html
9. The simplest way to install Apache
/etc/init.d/httpd start
LVM
(rpm -q)p file (for rpmfile name)
yum install httpd
10. 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)
pirut
CustomLog
mke2fs
DocumentRoot
11. Create the basic cache directories in /var/spool/squid with the following command:
/etc/httpd/conf/
iptables -F
dumpe2fs
squid -z
12. Are SELinux and iptables-based firewalls are enabled by default?
yum clean all
resize2fs /dev/myvg/homevol
Yes
DocumentRoot
13. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
service vsftpd status
ServerAdmin
yum install mod_ssl squid
--import file
14. 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.
parted /dev/hda print
yum -y update
chkconfig --list httpd
rpm -V
15. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/squid/
setup
ErrorLog
16. 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
AllowOverride
yum clean all
/etc/init.d/vsftpd start
17. The main Squid configuration file is ____/squid.conf
/etc/squid/
e2fsadm
mke2fs
select (followed by the device name such as /dev/hdb)
18. To list under which run levels the web service will start
setsebool -P squid_connect_any 1
LVM
setsebool -P htttpd.enable.homedirs 1
chkconfig --list httpd
19. To check status of ftp daemon
chkconfig --list httpd
/etc/init.d/httpd start
service vsftpd status
pirut
20. Use grep to count how many repositories have been configured in the file server1.repo
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. 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:
parted /dev/hda print
port 21
parted; check x
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
22. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
-i (do not use -U or -F!)
chmod 701
fdisk -l
-K
23. rpm ____ to install kernel updates
-i (do not use -U or -F!)
Yes
/etc/vsftpd
/ (root) - /boot and linux swap
24. The rpm ____ option installs the package - if it isn't already installed.
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/var/ftp/pub
-i (do not use -U or -F!)
25. 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
chmod 705
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
26. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum install mod_ssl squid
resize2fs
27. ____ configuration is not available via text mode RHEL installation.
NameVirtualHost
LVM
telnetd : ALL EXCEPT 192.168.1.10
rpm -qc
28. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
system-config-firewall
port 21
nfs
29. Run the ____ command to find the device associated with the USB key.
-i
fdisk -l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/httpd/conf/
30. 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
ErrorLog
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
e2fsadm
31. 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
htpasswd -c /etc/httpd/webpass e
lvextend -L4G /dev/rootvg/tmplv
yum update kernel
NameVirtualHost
32. 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:
select (followed by the device name such as /dev/hdb)
parted /dev/hda print
ls -Z
showmount -e
33. Perform a simple check of the file system. minor-num is x.
-l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
parted; check x
NameVirtualHost
34. Where is vsftpd.conf?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
fdisk
/etc/vsftpd
35. How to install vsftpd?
tune2fs
yum clean all
setsebool -P htttpd.enable.homedirs 1
yum install vsftpd
36. ____ prints superblock and block group information.
dumpe2fs
port 21
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ServerAdmin
37. What service is allowed through the default firewall?
chkconfig --list httpd
ssh
rpm -Va
pirut
38. 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
yum install vsftpd
/var/ftp/pub
rpm -V zip
telnetd : ALL EXCEPT 192.168.1.10
39. Tthe file that might contain: oldvg - rootvg - etc.
rpm -V
ServerName
chkconfig httpd on
/etc/lvmtab
40. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
chkconfig httpd on
tune2fs
resize2fs /dev/myvg/homevol
NameVirtualHost
41. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
htpasswd -c /etc/httpd/webpass e
tune2fs
setsebool -P squid_connect_any 1
(rpm -q)p file (for rpmfile name)
42. What is the standard directory for file sharing with vsFTP?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
CustomLog
/etc/lvmtab
var/ftp/pub
43. httpd ___ to update the httpd package - automatically answering yes to all the questions
LVM
-l
yum -y update
NameVirtualHost
44. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
lvextend -L4G /dev/rootvg/tmplv
45. How to start apache service?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
nfs
(rpm -q)p file (for rpmfile name)
/etc/init.d/httpd start
46. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
ServerAdmin
chkconfig --level 35 httpd on
(rpm -q)p file (for rpmfile name)
telnetd : ALL EXCEPT 192.168.1.10
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 ____
yum install httpd
rpm -e zip
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/squid/
48. What command starts the same menu as the text-mode First Boot process?
select (followed by the device name such as /dev/hdb)
wget (http://devmon.dev.schwab.com/index.html)
setup
yum clean all
49. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/vsftpd
/etc/vsftpd
lvdisplay -D /dev/rootvg/tmplv
50. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
rpm -qc
parted; check x
tune2fs