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. Where to find the main apache config file?
rpm -ivh --replacepkgs xxxx*
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -F
/etc/httpd/conf/
2. httpd ___ to update the httpd package - automatically answering yes to all the questions
chkconfig --level 35 httpd on
e2fsadm
yum -y update
yum install httpd
3. rpm ____ [name of package] to verify the package - once you have manually imported the key
5
mke2fs
yum install mod_ssl squid
-K
4. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
chkconfig vsftpd on
filesystem type is not ext2 or ext3
/boot
lvdisplay -D /dev/rootvg/tmplv
5. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
LVM
/media/repodata
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chkconfig --level 35 httpd on
6. ____ is used to modify file system parameters
iptables -F
tune2fs
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
7. Virtual Host Configuration: Names the URL for the virtual host.
ServerAdmin
ServerName
-K
elinks
8. '____ /var/www' will tell you the ACL settings of /var/www
NameVirtualHost
resize2fs /dev/myvg/homevol
ls -Z
NameVirtualHost
9. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
/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)
grep '[.*]' server1.repo
10. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
setsebool -P squid_connect_any 1
grep '[.*]' server1.repo
iptables -F
11. 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:
yum install vsftpd
tune2fs
/etc/vsftpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
12. 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
/boot
chkconfig --level 35 httpd on
iptables -F
AllowOverride
13. 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
rpm -V zip
elinks
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)
14. Create a disk label for the partition table called k
/etc/init.d/httpd start
parted; mklabel k
port 21
fdisk
15. 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.
service vsftpd status
/etc/init.d/httpd start
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -V
16. What command starts the same menu as the text-mode First Boot process?
chkconfig vsftpd on
iptables
service vsftpd status
setup
17. Apache supports security by specifying active ports through the Listen and ____ directives.
mke2fs
port 21
setsebool -P squid_connect_any 1
NameVirtualHost
18. Run the ____ command to find the device associated with the USB key.
showmount -a
resize2fs /dev/myvg/homevol
DocumentRoot
fdisk -l
19. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
AllowOverride
First boot process
fdisk -l
20. 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)
resize2fs /dev/myvg/homevol
/etc/init.d/vsftpd start
grep '[.*]' server1.repo
21. How to start the vsftp service automatically on boot?
htpasswd -c /etc/httpd/webpass e
dd if=./diskboot.img of=/dev/sdc
chkconfig vsftpd on
DocumentRoot
22. To list under which run levels the web service will start
chmod 701
rpm -ivh --replacepkgs xxxx*
chkconfig --list httpd
ServerName
23. The simplest way to install Apache
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
ServerTokens
nfs
24. How to install vsftpd?
yum install vsftpd
resize2fs
ServerTokens
iptables -F
25. The main Squid configuration file is ____/squid.conf
service vsftpd status
squid -z
var/ftp/pub
/etc/squid/
26. The rpm ____ option installs the package - if it isn't already installed.
Yes
iptables -F
tune2fs
-i
27. 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:
htpasswd -c /etc/httpd/webpass e
rpm -V
nfs
yum update kernel
28. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
showmount -a
5
lvdisplay -D /dev/rootvg/tmplv
yum install httpd
29. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
/etc/vsftpd
rpm -qc
fdisk -l
system-config-firewall
30. 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
chkconfig vsftpd on
parted; check x
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
31. What is the standard directory for file sharing with vsFTP?
iptables
var/ftp/pub
/etc/squid/
chkconfig --list httpd
32. How to start the vsftp service?
/etc/init.d/vsftpd start
-i
ls -Z
5
33. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
5
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/media/repodata
34. 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)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
iptables -F
35. How do you restart the apache web server?
rpm -V
/etc/vsftpd
var/www/html
/etc/init.d/httpd restart
36. what utility can be used to open port 80?
/etc/lvmtab
grep '[.*]' server1.repo
setsebool -P squid_connect_any 1
system-config-firewall
37. Perform a simple check of the file system. minor-num is x.
var/www/html
squid -z
parted; check x
rpm -V
38. How to start apache service?
resize2fs /dev/myvg/homevol
/etc/init.d/httpd start
ServerName
parted; check x
39. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
Yes
ErrorLog
tune2fs
40. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
lvdisplay -D /dev/rootvg/tmplv
yum clean all
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/init.d/httpd restart
41. Use parted to display disk geometry for /dev/hda and end up in shell
/etc/squid/
parted /dev/hda print
yum clean all
port 21
42. To check status of ftp daemon
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/httpd restart
service vsftpd status
rpm -qc
43. Are SELinux and iptables-based firewalls are enabled by default?
-i (do not use -U or -F!)
Yes
/etc/squid/
/etc/vsftpd
44. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -F
45. If in doubt about package names - you can find them in the ...
/etc/lvmtab
LVM
ServerTokens
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)
46. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
lvextend -L4G /dev/rootvg/tmplv
telnetd : ALL EXCEPT 192.168.1.10
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
47. You can use the ____ tool after installation to add any package groups that you missed.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
tune2fs
pirut
chmod 701
48. 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
yum update kernel
lvextend -L4G /dev/rootvg/tmplv
setsebool -P squid_connect_any 1
/etc/init.d/httpd restart
49. 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
port 21
wget (http://devmon.dev.schwab.com/index.html)
service vsftpd status
ServerTokens
50. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
LVM
chkconfig vsftpd on
(rpm -q)p file (for rpmfile name)
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)