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. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chkconfig --list httpd
yum -y update
parted; mklabel k
fdisk -l
2. rpm ____ verifies all installed rpms against the rpm database
/boot
rpm -Va
rpm -qc
/etc/init.d/httpd restart
3. What command starts the same menu as the text-mode First Boot process?
wget (http://devmon.dev.schwab.com/index.html)
rpm -e zip
nfs
setup
4. What is the first post installation step?
First boot process
/var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
htpasswd -c /etc/httpd/webpass e
5. httpd ___ to update the httpd package - automatically answering yes to all the questions
chkconfig --list httpd
lvextend -L4G /dev/rootvg/tmplv
yum -y update
e2fsadm
6. After you edit /etc/exports - run service ___ stop...
iptables -F
setsebool -P squid_connect_any 1
filesystem type is not ext2 or ext3
nfs
7. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
/etc/vsftpd
parted; check x
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
8. The rpm ____ option installs the package - if it isn't already installed.
nfs
-i
tune2fs
/etc/vsftpd
9. ____ configuration is not available via text mode RHEL installation.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
LVM
NameVirtualHost
ServerAdmin
10. ____ prints superblock and block group information.
dumpe2fs
5
/etc/lvmtab
chkconfig vsftpd on
11. ____ can expand and shrink ext2 and ext3 file systems
mke2fs
AllowOverride
resize2fs
/etc/vsftpd
12. rpm ____ verifies the installed zip rpm against the rpm database
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
NameVirtualHost
rpm -V zip
13. The simplest way to install Apache
lvextend -L4G /dev/rootvg/tmplv
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
resize2fs
yum install httpd
14. ____ is used for creating ext2 and ext3 file systems
dd if=./diskboot.img of=/dev/sdc
mke2fs
yum install httpd
(rpm -q)p file (for rpmfile name)
15. 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:
fdisk -l
setsebool -P squid_connect_any 1
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
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
chcon -R -t httpd_sys_content_t /home/michael/public_html
First boot process
ServerTokens
CustomLog
17. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
lvdisplay -D /dev/rootvg/tmplv
(rpm -q)p file (for rpmfile name)
dd if=./diskboot.img of=/dev/sdc
/etc/init.d/httpd restart
18. 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
19. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
/media/repodata
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : ALL EXCEPT 192.168.1.10
ErrorLog
20. Where is vsftpd.conf?
chkconfig vsftpd on
/etc/vsftpd
yum install mod_ssl squid
squid -z
21. What service is allowed through the default firewall?
ssh
ServerTokens
rpm -ivh --replacepkgs xxxx*
fdisk -l
22. ____ is used to modify file system parameters
tune2fs
yum install httpd
rpm -qc
nfs
23. You can use the ____ tool after installation to add any package groups that you missed.
elinks
pirut
yum install httpd
AllowOverride
24. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
fdisk -l
resize2fs
setsebool -P htttpd.enable.homedirs 1
fdisk -l
25. 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
resize2fs
fdisk -l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
26. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
parted /dev/hda print
rpm -qc
fdisk
resize2fs /dev/myvg/homevol
27. How to start the vsftp service?
showmount -e
showmount -a
NameVirtualHost
/etc/init.d/vsftpd start
28. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/etc/vsftpd
rpm -e zip
chkconfig vsftpd on
wget (http://devmon.dev.schwab.com/index.html)
29. To check status of ftp daemon
ServerAdmin
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
service vsftpd status
30. what port needs to be open to access ftp?
yum install httpd
parted; check x
port 21
squid -z
31. Where to find the main apache config file?
/etc/httpd/conf/
-i
grep '[.*]' server1.repo
ssh
32. Virtual Host Configuration: Names the URL for the virtual host.
ssh
ServerName
port 21
/etc/init.d/httpd start
33. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
dumpe2fs
/media/repodata
dd if=./diskboot.img of=/dev/sdc
-K
34. How to install apache?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
service vsftpd status
yum install httpd
yum install vsftpd
35. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvextend -L4G /dev/rootvg/tmplv
-l
lvdisplay -D /dev/rootvg/tmplv
ServerTokens
36. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
/ (root) - /boot and linux swap
yum clean all
resize2fs
37. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
rpm -Va
dumpe2fs
/etc/vsftpd
38. To list under which run levels the web service will start
select (followed by the device name such as /dev/hdb)
tune2fs
chkconfig --list httpd
-i
39. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)
ServerAdmin
fdisk
40. Perform a simple check of the file system. minor-num is x.
/var/ftp/pub
iptables -F
-K
parted; check x
41. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
Yes
iptables -F
yum install mod_ssl squid
42. 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
-l
/etc/httpd/conf/
/etc/vsftpd
AllowOverride
43. Run the ____ command to find the device associated with the USB key.
select (followed by the device name such as /dev/hdb)
fdisk -l
yum install httpd
squid -z
44. Apache supports security by specifying active ports through the Listen and ____ directives.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -qc
setup
NameVirtualHost
45. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chkconfig httpd on
/etc/httpd/conf/
telnetd : ALL EXCEPT 192.168.1.10
chmod 701
46. rpm ____ [name of package] to verify the package - once you have manually imported the key
/etc/vsftpd
parted; check x
fdisk
-K
47. Virtual Host Configuration: Sets a root directory for the virtual host.
yum -y update
DocumentRoot
resize2fs
/ (root) - /boot and linux swap
48. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chkconfig vsftpd on
rpm -V zip
setsebool -P squid_connect_any 1
chmod 705
49. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
showmount -e
yum install vsftpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
50. Where is the config dir for vsftpd?
var/ftp/pub
/etc/vsftpd
DocumentRoot
CustomLog