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. How to start the vsftp service?
rpm -V
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/vsftpd start
/ (root) - /boot and linux swap
2. How to install apache?
DocumentRoot
Yes
lvextend -L4G /dev/rootvg/tmplv
yum install httpd
3. How to install vsftpd?
yum install vsftpd
DocumentRoot
/etc/init.d/vsftpd start
iptables -F
4. To install both mod_ssl and squid packages
setup
yum install mod_ssl squid
showmount -e
chcon -R -t httpd_sys_content_t /home/michael/public_html
5. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
yum clean all
/var/ftp/pub
CustomLog
6. How do you restart the apache web server?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted /dev/hda print
/etc/init.d/httpd restart
/ (root) - /boot and linux swap
7. 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
/ (root) - /boot and linux swap
rpm -V
--import file
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
8. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
dd if=./diskboot.img of=/dev/sdc
yum clean all
resize2fs
service vsftpd status
9. 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)
DocumentRoot
iptables -F
e2fsadm
ls -Z
10. To list under which run levels the web service will start
iptables
chkconfig --list httpd
iptables -F
First boot process
11. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
iptables -F
grep '[.*]' server1.repo
5
-l
12. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
chkconfig --list httpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
AllowOverride
13. What is the first post installation step?
port 21
First boot process
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/media/repodata
14. Perform a simple check of the file system. minor-num is x.
dd if=./diskboot.img of=/dev/sdc
rpm -V zip
parted; check x
var/ftp/pub
15. rpm ____ to install kernel updates
yum install mod_ssl squid
-i (do not use -U or -F!)
chcon -R -t httpd_sys_content_t /home/michael/public_html
var/ftp/pub
16. Where is the main apache data directory?
var/www/html
chkconfig vsftpd on
/etc/httpd/conf/
chkconfig --list httpd
17. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/lvmtab
/etc/init.d/vsftpd start
rpm -ivh --replacepkgs xxxx*
(rpm -q)p file (for rpmfile name)
18. 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
port 21
ServerName
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)
telnetd : ALL EXCEPT 192.168.1.10
19. The simplest way to install Apache
e2fsadm
yum install httpd
rpm -V
lvextend -L4G /dev/rootvg/tmplv
20. httpd ___ shows me what config files were installed when the httpd package was installed
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/vsftpd start
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)
rpm -qc
21. Are SELinux and iptables-based firewalls are enabled by default?
Yes
/var/ftp/pub
nfs
dd if=./diskboot.img of=/dev/sdc
22. The rpm ____ option installs the package - if it isn't already installed.
LVM
yum install httpd
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
23. What is the standard directory for file sharing with vsFTP?
/etc/lvmtab
yum install mod_ssl squid
rpm -qc
var/ftp/pub
24. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
/etc/httpd/conf/
chmod 701
ServerTokens
25. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm -qc
NameVirtualHost
yum install vsftpd
/var/ftp/pub
26. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
ls -Z
wget (http://devmon.dev.schwab.com/index.html)
yum install vsftpd
grep '[.*]' server1.repo
27. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
parted; mklabel k
setsebool -P squid_connect_any 1
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
28. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
rpm -V zip
service vsftpd status
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)
29. 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
ServerTokens
(rpm -q)p file (for rpmfile name)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chkconfig httpd on
30. Virtual Host Configuration: Names the URL for the virtual host.
chkconfig --list httpd
/etc/init.d/httpd start
ServerName
chcon -R -t httpd_sys_content_t /home/michael/public_html
31. How to make sure apache starts automatically on next reboot?
var/ftp/pub
rpm -V
/ (root) - /boot and linux swap
chkconfig httpd on
32. Where is the vsftp pub dir?
/etc/vsftpd
/var/ftp/pub
rpm -V
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
33. How to start apache service?
(rpm -q)p file (for rpmfile name)
wget (http://devmon.dev.schwab.com/index.html)
resize2fs
/etc/init.d/httpd start
34. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
rpm -V
yum -y update
ssh
fdisk
35. What service is allowed through the default firewall?
ssh
resize2fs /dev/myvg/homevol
/etc/lvmtab
rpm -qc
36. 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 ____
filesystem type is not ext2 or ext3
chkconfig vsftpd on
rpm -e zip
parted; check x
37. rpm ____ verifies the installed zip rpm against the rpm database
/etc/httpd/conf/
rpm -V zip
rpm -qc
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
38. Create the basic cache directories in /var/spool/squid with the following command:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
squid -z
rpm -V zip
iptables -F
39. How to disable the firewall on the current system?
setsebool -P htttpd.enable.homedirs 1
lvdisplay -D /dev/rootvg/tmplv
iptables -F
iptables -F
40. Create a disk label for the partition table called k
port 21
ls -Z
parted; mklabel k
resize2fs
41. rpm option to show me the package files
grep '[.*]' server1.repo
yum install httpd
-l
chkconfig httpd on
42. Virtual Host Configuration: Sets a root directory for the virtual host.
rpm -qc
DocumentRoot
nfs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
43. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
wget (http://devmon.dev.schwab.com/index.html)
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ServerName
44. ____ is used to modify file system parameters
squid -z
ErrorLog
NameVirtualHost
tune2fs
45. 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)
lvextend -L4G /dev/rootvg/tmplv
/ (root) - /boot and linux swap
rpm -e zip
46. Where is vsftpd.conf?
/boot
yum install mod_ssl squid
/etc/vsftpd
/etc/init.d/httpd start
47. 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
e2fsadm
yum install httpd
First boot process
48. If in doubt about package names - you can find them in the ...
fdisk -l
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)
rpm -ivh --replacepkgs xxxx*
showmount -e
49. 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.
parted; mklabel k
iptables -F
AllowOverride
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)
50. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
5
chkconfig vsftpd on
ServerName