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. 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.
setsebool -P squid_connect_any 1
iptables -F
var/www/html
yum update kernel
2. Where is vsftpd.conf?
-K
/etc/vsftpd
/etc/init.d/httpd restart
chkconfig httpd on
3. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V
-i (do not use -U or -F!)
4. How to disable the firewall on the current system?
/etc/init.d/httpd start
iptables -F
var/www/html
parted /dev/hda print
5. Are SELinux and iptables-based firewalls are enabled by default?
showmount -e
telnetd : ALL EXCEPT 192.168.1.10
-i
Yes
6. Run the ____ command to find the device associated with the USB key.
nfs
fdisk -l
setsebool -P squid_connect_any 1
5
7. The main Squid configuration file is ____/squid.conf
/etc/squid/
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)
yum -y update
e2fsadm
8. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
dd if=./diskboot.img of=/dev/sdc
fdisk -l
5
9. ____ is used to modify file system parameters
tune2fs
-l
LVM
select (followed by the device name such as /dev/hdb)
10. How to start apache service?
/ (root) - /boot and linux swap
pirut
/etc/init.d/httpd start
ssh
11. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
--import file
rpm -V
AllowOverride
12. How to install vsftpd?
yum install vsftpd
/etc/vsftpd
rpm -V
parted; check x
13. 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
yum install vsftpd
yum install mod_ssl squid
ServerTokens
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
14. Where to find the main apache config file?
/etc/httpd/conf/
-K
/etc/lvmtab
filesystem type is not ext2 or ext3
15. To install both mod_ssl and squid packages
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
NameVirtualHost
yum install mod_ssl squid
chkconfig --list httpd
16. Where is the vsftp pub dir?
LVM
/etc/lvmtab
iptables
/var/ftp/pub
17. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
chkconfig --list httpd
showmount -a
yum install httpd
elinks
18. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
lvdisplay -D /dev/rootvg/tmplv
fdisk
CustomLog
service vsftpd status
19. How do you restart the apache web server?
rpm -qc
setsebool -P htttpd.enable.homedirs 1
/etc/init.d/httpd restart
lvextend -L4G /dev/rootvg/tmplv
20. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum clean all
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
21. rpm ____ verifies all installed rpms against the rpm database
/etc/init.d/httpd start
rpm -Va
mke2fs
-l
22. 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)
rpm -V
parted; check x
/etc/init.d/httpd start
CustomLog
23. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
-i (do not use -U or -F!)
lvextend -L4G /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
24. ____ configuration is not available via text mode RHEL installation.
fdisk
/media/repodata
yum clean all
LVM
25. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
resize2fs /dev/myvg/homevol
/etc/init.d/vsftpd start
(rpm -q)p file (for rpmfile name)
wget (http://devmon.dev.schwab.com/index.html)
26. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chcon -R -t httpd_sys_content_t /home/michael/public_html
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
pirut
fdisk -l
27. rpm option to show me the package files
Yes
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
squid -z
-l
28. The simplest way to install Apache
rpm -Va
yum clean all
yum install httpd
parted /dev/hda print
29. What parts of rhel6 should be installed to separate volumes?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/ (root) - /boot and linux swap
telnetd : ALL EXCEPT 192.168.1.10
yum install mod_ssl squid
30. 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
31. 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:
fdisk -l
showmount -e
iptables -F
/etc/httpd/conf/
32. httpd ___ shows me what config files were installed when the httpd package was installed
NameVirtualHost
select (followed by the device name such as /dev/hdb)
rpm -qc
chkconfig httpd on
33. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -V
dd if=./diskboot.img of=/dev/sdc
ServerName
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
34. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
iptables -F
/etc/init.d/httpd start
var/www/html
35. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -Va
DocumentRoot
ErrorLog
pirut
36. What is the first post installation step?
/var/ftp/pub
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
First boot process
lvdisplay -D /dev/rootvg/tmplv
37. To list under which run levels the web service will start
ServerAdmin
htpasswd -c /etc/httpd/webpass e
chkconfig --list httpd
-i (do not use -U or -F!)
38. How to start the vsftp service automatically on boot?
/etc/squid/
chkconfig vsftpd on
iptables -F
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
39. rpm ____ to install kernel updates
rpm -e zip
-i (do not use -U or -F!)
dd if=./diskboot.img of=/dev/sdc
var/www/html
40. How to start the vsftp service?
/etc/vsftpd
/etc/init.d/vsftpd start
yum install vsftpd
setup
41. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/vsftpd
-l
htpasswd -c /etc/httpd/webpass e
rpm -ivh --replacepkgs xxxx*
42. 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 ____
elinks
chkconfig --list httpd
rpm -e zip
resize2fs
43. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
LVM
DocumentRoot
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
44. rpm ____ [name of package] to verify the package - once you have manually imported the key
/etc/httpd/conf/
rpm -e zip
-K
yum install httpd
45. Apache supports security by specifying active ports through the Listen and ____ directives.
First boot process
rpm -Va
iptables -F
NameVirtualHost
46. 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
tune2fs
htpasswd -c /etc/httpd/webpass e
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
47. 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:
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -t httpd_sys_content_t /home/michael/public_html
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)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
48. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
iptables -F
ssh
/etc/lvmtab
(rpm -q)p file (for rpmfile name)
49. 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
/var/ftp/pub
resize2fs
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
50. After you edit /etc/exports - run service ___ stop...
setup
yum install httpd
nfs
iptables -F