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. 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
/etc/httpd/conf/
--import file
showmount -e
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
2. Create the basic cache directories in /var/spool/squid with the following command:
-i (do not use -U or -F!)
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
squid -z
3. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
yum install vsftpd
/boot
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum clean all
4. rpm ____ verifies the installed zip rpm against the rpm database
ServerAdmin
(rpm -q)p file (for rpmfile name)
chkconfig --list httpd
rpm -V zip
5. How to disable the firewall on the current system?
fdisk -l
/var/ftp/pub
iptables -F
/media/repodata
6. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
e2fsadm
pirut
rpm -Va
5
7. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
setsebool -P squid_connect_any 1
parted /dev/hda print
resize2fs /dev/myvg/homevol
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
8. Use parted to display disk geometry for /dev/hda and end up in shell
NameVirtualHost
parted /dev/hda print
squid -z
5
9. Where to find the main apache config file?
/etc/httpd/conf/
ssh
yum install httpd
iptables
10. How to make sure apache starts automatically on next reboot?
NameVirtualHost
elinks
/etc/init.d/vsftpd start
chkconfig httpd on
11. 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.
tune2fs
rpm -V
NameVirtualHost
-l
12. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
parted /dev/hda print
yum install mod_ssl squid
iptables -F
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
13. If in doubt about package names - you can find them in the ...
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)
tune2fs
/etc/lvmtab
--import file
14. Where is the main apache data directory?
telnetd : ALL EXCEPT 192.168.1.10
yum clean all
var/www/html
fdisk
15. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
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)
/ (root) - /boot and linux swap
16. 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
elinks
chcon -R -t httpd_sys_content_t /home/michael/public_html
chkconfig --list httpd
chkconfig vsftpd on
17. What is the first post installation step?
parted; check x
elinks
resize2fs /dev/myvg/homevol
First boot process
18. 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)
/etc/lvmtab
chkconfig --level 35 httpd on
ssh
e2fsadm
19. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
DocumentRoot
dumpe2fs
rpm -qc
(rpm -q)p file (for rpmfile name)
20. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
parted; mklabel k
/var/ftp/pub
wget (http://devmon.dev.schwab.com/index.html)
/etc/httpd/conf/
21. httpd ___ shows me what config files were installed when the httpd package was installed
/etc/lvmtab
showmount -e
rpm -qc
pirut
22. 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
rpm -V zip
rpm -e zip
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
23. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
chkconfig httpd on
yum clean all
-l
dd if=./diskboot.img of=/dev/sdc
24. How do you restart the apache web server?
mke2fs
/etc/init.d/httpd restart
Yes
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
25. What service is allowed through the default firewall?
/boot
rpm -Va
ssh
mke2fs
26. 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
tune2fs
/etc/init.d/vsftpd start
/etc/vsftpd
ServerTokens
27. 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
ServerAdmin
showmount -a
chkconfig --level 35 httpd on
yum update kernel
28. ____ is used for creating ext2 and ext3 file systems
mke2fs
showmount -e
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chkconfig --list httpd
29. 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
setsebool -P squid_connect_any 1
port 21
fdisk -l
var/ftp/pub
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. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
chcon -R -t httpd_sys_content_t /home/michael/public_html
chmod 701
ServerAdmin
ErrorLog
32. How to start apache service?
--import file
dd if=./diskboot.img of=/dev/sdc
/etc/init.d/httpd start
var/ftp/pub
33. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum install vsftpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
fdisk
select (followed by the device name such as /dev/hdb)
34. What is the standard directory for file sharing with vsFTP?
/etc/squid/
Yes
chkconfig --list httpd
var/ftp/pub
35. ____ can expand and shrink ext2 and ext3 file systems
mke2fs
DocumentRoot
resize2fs
iptables -F
36. To install both mod_ssl and squid packages
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chmod 705
yum install mod_ssl squid
chkconfig --list httpd
37. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum clean all
chkconfig --list httpd
ErrorLog
/etc/init.d/httpd restart
38. Where is vsftpd.conf?
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
/media/repodata
/etc/vsftpd
39. How to start the vsftp service?
parted /dev/hda print
/etc/init.d/vsftpd start
chkconfig vsftpd on
NameVirtualHost
40. Run the ____ command to find the device associated with the USB key.
iptables
iptables -F
LVM
fdisk -l
41. Virtual Host Configuration: Sets a root directory for the virtual host.
setsebool -P squid_connect_any 1
nfs
parted; check x
DocumentRoot
42. You can use the ____ tool after installation to add any package groups that you missed.
iptables -F
pirut
showmount -a
parted; mklabel k
43. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
/etc/vsftpd
/var/ftp/pub
yum install httpd
ServerAdmin
44. rpm ____ verifies all installed rpms against the rpm database
telnetd : ALL EXCEPT 192.168.1.10
rpm -Va
ls -Z
fdisk -l
45. The rpm ____ option installs the package - if it isn't already installed.
parted; check x
showmount -a
-i
rpm -ivh --replacepkgs xxxx*
46. 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 -Va
tune2fs
rpm -qc
CustomLog
47. ____ configuration is not available via text mode RHEL installation.
var/www/html
LVM
rpm -e zip
/ (root) - /boot and linux swap
48. 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
dumpe2fs
grep '[.*]' server1.repo
-i (do not use -U or -F!)
iptables
49. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
/media/repodata
LVM
-l
chmod 701
50. ____ is used to modify file system parameters
tune2fs
fdisk
chkconfig vsftpd on
/etc/vsftpd