SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 do you restart the apache web server?
/etc/init.d/httpd restart
ServerAdmin
chkconfig --level 35 httpd on
chmod 701
2. 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
/etc/lvmtab
/ (root) - /boot and linux swap
/etc/httpd/conf/
AllowOverride
3. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
ssh
chmod 701
wget (http://devmon.dev.schwab.com/index.html)
NameVirtualHost
4. Use parted to display disk geometry for /dev/hda and end up in shell
setsebool -P htttpd.enable.homedirs 1
ErrorLog
yum -y update
parted /dev/hda print
5. The rpm ____ option installs the package - if it isn't already installed.
-i
parted; check x
/etc/httpd/conf/
ServerAdmin
6. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
chkconfig --level 35 httpd on
select (followed by the device name such as /dev/hdb)
yum install httpd
chkconfig vsftpd on
7. Virtual Host Configuration: Sets a root directory for the virtual host.
chmod 701
First boot process
parted /dev/hda print
DocumentRoot
8. Where is the main apache data directory?
ServerName
rpm -e zip
var/www/html
squid -z
9. Run the ____ command to find the device associated with the USB key.
-i
setsebool -P squid_connect_any 1
fdisk -l
yum clean all
10. Use grep to count how many repositories have been configured in the file server1.repo
11. Where to find the main apache config file?
(rpm -q)p file (for rpmfile name)
ssh
/ (root) - /boot and linux swap
/etc/httpd/conf/
12. 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
select (followed by the device name such as /dev/hdb)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd start
13. 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
chkconfig --level 35 httpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
/media/repodata
Yes
14. rpm ____ verifies all installed rpms against the rpm database
rpm -V
setup
rpm -Va
/var/ftp/pub
15. How to start the vsftp service automatically on boot?
/etc/vsftpd
fdisk
select (followed by the device name such as /dev/hdb)
chkconfig vsftpd on
16. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
lvdisplay -D /dev/rootvg/tmplv
squid -z
First boot process
17. How to start apache service?
/etc/init.d/httpd start
First boot process
port 21
/etc/lvmtab
18. As you may not have access to the GUI during the Red Hat exams - you need to know how to use text-based browsers. The standard is ____
resize2fs /dev/myvg/homevol
elinks
fdisk -l
parted /dev/hda print
19. ____ is used for creating ext2 and ext3 file systems
/etc/squid/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
mke2fs
chkconfig --list httpd
20. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
/ (root) - /boot and linux swap
-i (do not use -U or -F!)
NameVirtualHost
21. rpm option to show me the package files
-l
iptables -F
iptables -F
fdisk
22. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
var/www/html
yum install vsftpd
lvdisplay -D /dev/rootvg/tmplv
23. The simplest way to install Apache
AllowOverride
chkconfig --list httpd
rpm -qc
yum install httpd
24. 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
lvextend -L4G /dev/rootvg/tmplv
/boot
fdisk
squid -z
25. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
showmount -e
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)
chkconfig httpd on
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
26. How to disable the firewall on the current system?
iptables -F
Yes
wget (http://devmon.dev.schwab.com/index.html)
/etc/init.d/httpd restart
27. ____ is used to modify file system parameters
/var/ftp/pub
chkconfig --list httpd
tune2fs
lvdisplay -D /dev/rootvg/tmplv
28. ____ configuration is not available via text mode RHEL installation.
LVM
yum clean all
resize2fs /dev/myvg/homevol
fdisk -l
29. 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
ssh
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
wget (http://devmon.dev.schwab.com/index.html)
30. pam ___ will tell me if any files in the pam package have changed since it was first installed
DocumentRoot
showmount -e
rpm -e zip
rpm -V
31. To install both mod_ssl and squid packages
CustomLog
yum install mod_ssl squid
iptables -F
htpasswd -c /etc/httpd/webpass e
32. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
parted /dev/hda print
telnetd : ALL EXCEPT 192.168.1.10
dumpe2fs
filesystem type is not ext2 or ext3
33. 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
mke2fs
ServerTokens
parted; check x
setsebool -P htttpd.enable.homedirs 1
34. After you edit /etc/exports - run service ___ stop...
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs
nfs
ServerAdmin
35. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
pirut
fdisk -l
chkconfig vsftpd on
chkconfig --list httpd
36. You can use the ____ tool after installation to add any package groups that you missed.
nfs
pirut
ErrorLog
filesystem type is not ext2 or ext3
37. 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:
yum clean all
showmount -e
ServerName
htpasswd -c /etc/httpd/webpass e
38. How to install vsftpd?
yum install vsftpd
/etc/squid/
chmod 705
filesystem type is not ext2 or ext3
39. 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
var/ftp/pub
CustomLog
telnetd : ALL EXCEPT 192.168.1.10
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
40. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
/etc/init.d/httpd restart
var/ftp/pub
lvdisplay -D /dev/rootvg/tmplv
41. How to make sure apache starts automatically on next reboot?
AllowOverride
parted; mklabel k
rpm -V zip
chkconfig httpd on
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 ____
rpm -ivh --replacepkgs xxxx*
rpm -V zip
rpm -e zip
fdisk -l
43. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
htpasswd -c /etc/httpd/webpass e
elinks
44. Perform a simple check of the file system. minor-num is x.
var/www/html
ssh
-l
parted; check x
45. How to install apache?
ErrorLog
mke2fs
showmount -a
yum install httpd
46. 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
service vsftpd status
yum install httpd
/etc/init.d/httpd start
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
47. 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)
CustomLog
/etc/lvmtab
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --level 35 httpd on
48. What is the first post installation step?
yum install httpd
ErrorLog
/etc/vsftpd
First boot process
49. What service is allowed through the default firewall?
yum install vsftpd
grep '[.*]' server1.repo
NameVirtualHost
ssh
50. Are SELinux and iptables-based firewalls are enabled by default?
showmount -a
setup
-i
Yes