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. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
grep '[.*]' server1.repo
iptables
var/www/html
2. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
elinks
ErrorLog
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -t httpd_sys_content_t /home/michael/public_html
3. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
parted /dev/hda print
e2fsadm
-i (do not use -U or -F!)
filesystem type is not ext2 or ext3
4. What parts of rhel6 should be installed to separate volumes?
First boot process
nfs
/ (root) - /boot and linux swap
elinks
5. After you edit /etc/exports - run service ___ stop...
yum clean all
LVM
nfs
system-config-firewall
6. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
CustomLog
rpm -ivh --replacepkgs xxxx*
-i (do not use -U or -F!)
NameVirtualHost
7. 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
8. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
rpm -V
showmount -e
chmod 701
/etc/squid/
9. what utility can be used to open port 80?
yum install httpd
system-config-firewall
-i (do not use -U or -F!)
Yes
10. To check status of ftp daemon
-i
rpm -V zip
htpasswd -c /etc/httpd/webpass e
service vsftpd status
11. rpm ____ to import the rpm key for integrity checking
yum install httpd
dd if=./diskboot.img of=/dev/sdc
/var/ftp/pub
--import file
12. 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)
service vsftpd status
--import file
squid -z
13. rpm ____ verifies all installed rpms against the rpm database
mke2fs
chkconfig vsftpd on
-l
rpm -Va
14. 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
ServerAdmin
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)
iptables
First boot process
15. Tthe file that might contain: oldvg - rootvg - etc.
chkconfig --list httpd
fdisk -l
setsebool -P squid_connect_any 1
/etc/lvmtab
16. Apache supports security by specifying active ports through the Listen and ____ directives.
setup
NameVirtualHost
rpm -V
system-config-firewall
17. ____ prints superblock and block group information.
Yes
AllowOverride
dumpe2fs
chkconfig --level 35 httpd on
18. ____ can expand and shrink ext2 and ext3 file systems
/etc/init.d/vsftpd start
chkconfig --list httpd
resize2fs
/media/repodata
19. ____ configuration is not available via text mode RHEL installation.
DocumentRoot
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)
NameVirtualHost
LVM
20. rpm ____ [name of package] to verify the package - once you have manually imported the key
lvdisplay -D /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
htpasswd -c /etc/httpd/webpass e
-K
21. How to install vsftpd?
mke2fs
yum install vsftpd
pirut
--import file
22. What service is allowed through the default firewall?
/etc/init.d/vsftpd start
elinks
ssh
iptables -F
23. ____ is used for creating ext2 and ext3 file systems
yum install httpd
--import file
mke2fs
AllowOverride
24. How do you restart the apache web server?
/etc/init.d/httpd restart
setsebool -P squid_connect_any 1
/etc/lvmtab
/etc/vsftpd
25. How to install apache?
DocumentRoot
yum install httpd
--import file
yum install vsftpd
26. 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 ____
elinks
wget (http://devmon.dev.schwab.com/index.html)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
port 21
27. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --list httpd
var/www/html
28. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/vsftpd
fdisk -l
showmount -e
29. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
pirut
ServerAdmin
lvdisplay -D /dev/rootvg/tmplv
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
30. rpm option to show me the package files
-l
CustomLog
fdisk
parted /dev/hda print
31. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -ivh --replacepkgs xxxx*
rpm -V
parted /dev/hda print
First boot process
32. 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
yum install httpd
ServerTokens
chcon -R -t httpd_sys_content_t /home/michael/public_html
33. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
yum install httpd
fdisk -l
-K
rpm -e zip
34. Where to find the main apache config file?
select (followed by the device name such as /dev/hdb)
CustomLog
Yes
/etc/httpd/conf/
35. The simplest way to install Apache
chkconfig --level 35 httpd on
ServerAdmin
var/ftp/pub
yum install httpd
36. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/etc/init.d/httpd restart
var/ftp/pub
ls -Z
/media/repodata
37. ____ is used to modify file system parameters
htpasswd -c /etc/httpd/webpass e
tune2fs
ServerName
rpm -V zip
38. Create the basic cache directories in /var/spool/squid with the following command:
pirut
squid -z
chmod 705
/etc/init.d/vsftpd start
39. You can use the ____ tool after installation to add any package groups that you missed.
select (followed by the device name such as /dev/hdb)
chkconfig vsftpd on
chkconfig --level 35 httpd on
pirut
40. ___ 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)
service vsftpd status
/media/repodata
/etc/init.d/httpd start
41. what port needs to be open to access ftp?
/etc/httpd/conf/
port 21
rpm -ivh --replacepkgs xxxx*
var/ftp/pub
42. Where is the vsftp pub dir?
yum install httpd
e2fsadm
setup
/var/ftp/pub
43. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
port 21
yum update kernel
showmount -a
resize2fs /dev/myvg/homevol
44. 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
-i
resize2fs /dev/myvg/homevol
iptables -F
45. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
rpm -qc
fdisk
port 21
elinks
46. rpm ____ to install kernel updates
/etc/squid/
Yes
-i (do not use -U or -F!)
var/www/html
47. Use parted to display disk geometry for /dev/hda and end up in shell
CustomLog
NameVirtualHost
parted /dev/hda print
First boot process
48. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -e zip
ErrorLog
LVM
NameVirtualHost
49. What command starts the same menu as the text-mode First Boot process?
setup
rpm -V
/media/repodata
/boot
50. Where is the config dir for vsftpd?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
parted; mklabel k
/etc/init.d/vsftpd start
/etc/vsftpd