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. What parts of rhel6 should be installed to separate volumes?
rpm -V zip
/ (root) - /boot and linux swap
/etc/vsftpd
parted; mklabel k
2. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
/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)
ErrorLog
5
3. ___ 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)
dumpe2fs
/etc/vsftpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
4. what utility can be used to open port 80?
pirut
showmount -e
system-config-firewall
yum install httpd
5. How to start the vsftp service?
NameVirtualHost
port 21
ServerName
/etc/init.d/vsftpd start
6. 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
ServerAdmin
dumpe2fs
ssh
7. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chmod 701
pirut
ServerAdmin
filesystem type is not ext2 or ext3
8. The simplest way to install Apache
yum install httpd
chkconfig httpd on
select (followed by the device name such as /dev/hdb)
htpasswd -c /etc/httpd/webpass e
9. Are SELinux and iptables-based firewalls are enabled by default?
lvdisplay -D /dev/rootvg/tmplv
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
Yes
DocumentRoot
10. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
--import file
yum update kernel
First boot process
11. Virtual Host Configuration: Names the URL for the virtual host.
/etc/lvmtab
rpm -e zip
CustomLog
ServerName
12. rpm ____ [name of package] to verify the package - once you have manually imported the key
iptables -F
-K
parted /dev/hda print
lvdisplay -D /dev/rootvg/tmplv
13. _____ will change the size of /dev/rootvg/tmplv to 4 gig
chkconfig httpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
AllowOverride
lvextend -L4G /dev/rootvg/tmplv
14. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
rpm -V
chkconfig httpd on
chkconfig --level 35 httpd on
setsebool -P htttpd.enable.homedirs 1
15. 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
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)
chmod 701
ServerTokens
LVM
16. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
select (followed by the device name such as /dev/hdb)
ServerName
yum install httpd
grep '[.*]' server1.repo
17. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
system-config-firewall
pirut
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)
18. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
(rpm -q)p file (for rpmfile name)
NameVirtualHost
chkconfig vsftpd on
resize2fs /dev/myvg/homevol
19. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum install vsftpd
yum -y update
select (followed by the device name such as /dev/hdb)
setsebool -P squid_connect_any 1
20. To install both mod_ssl and squid packages
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install mod_ssl squid
(rpm -q)p file (for rpmfile name)
tune2fs
21. What is the first post installation step?
First boot process
LVM
lvdisplay -D /dev/rootvg/tmplv
ErrorLog
22. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
fdisk
showmount -a
lvextend -L4G /dev/rootvg/tmplv
23. The rpm ____ option installs the package - if it isn't already installed.
-i
/etc/init.d/vsftpd start
chkconfig --list httpd
fdisk -l
24. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
var/www/html
yum install httpd
parted; check x
25. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
var/www/html
tune2fs
fdisk
CustomLog
26. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
yum install mod_ssl squid
filesystem type is not ext2 or ext3
--import file
service vsftpd status
27. 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 update kernel
system-config-firewall
/etc/httpd/conf/
showmount -e
28. To list under which run levels the web service will start
chkconfig --list httpd
/etc/init.d/httpd restart
/etc/init.d/vsftpd start
iptables -F
29. ____ configuration is not available via text mode RHEL installation.
LVM
NameVirtualHost
ServerTokens
filesystem type is not ext2 or ext3
30. 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
pirut
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum clean all
CustomLog
31. Where is vsftpd.conf?
/media/repodata
/etc/vsftpd
ServerAdmin
port 21
32. Where is the vsftp pub dir?
/var/ftp/pub
yum update kernel
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
rpm -qc
33. Use parted to display disk geometry for /dev/hda and end up in shell
/boot
system-config-firewall
parted /dev/hda print
NameVirtualHost
34. 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:
/boot
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chkconfig --list httpd
First boot process
35. You can use the ____ tool after installation to add any package groups that you missed.
/etc/httpd/conf/
pirut
DocumentRoot
lvdisplay -D /dev/rootvg/tmplv
36. 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
parted; mklabel k
yum update kernel
wget (http://devmon.dev.schwab.com/index.html)
/var/ftp/pub
37. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
/ (root) - /boot and linux swap
dumpe2fs
ServerAdmin
38. rpm ____ to install kernel updates
showmount -a
-i (do not use -U or -F!)
e2fsadm
lvextend -L4G /dev/rootvg/tmplv
39. 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)
setup
yum install httpd
CustomLog
rpm -V
40. '____ /var/www' will tell you the ACL settings of /var/www
chkconfig --list httpd
NameVirtualHost
ls -Z
--import file
41. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
iptables -F
tune2fs
-i
yum clean all
42. How do you restart the apache web server?
/etc/init.d/httpd restart
fdisk -l
/etc/squid/
telnetd : ALL EXCEPT 192.168.1.10
43. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
/etc/init.d/httpd start
ServerTokens
telnetd : ALL EXCEPT 192.168.1.10
44. what port needs to be open to access ftp?
htpasswd -c /etc/httpd/webpass e
port 21
yum install mod_ssl squid
var/www/html
45. How to install apache?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum update kernel
-i (do not use -U or -F!)
yum install httpd
46. If you want to create a database file named webpass in the /etc/httpd directory - for user 'e' - you'd start with the following command:
ssh
htpasswd -c /etc/httpd/webpass e
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
47. Where is the main apache data directory?
select (followed by the device name such as /dev/hdb)
var/www/html
tune2fs
ssh
48. Tthe file that might contain: oldvg - rootvg - etc.
/etc/httpd/conf/
-l
/etc/lvmtab
rpm -V
49. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/vsftpd
ssh
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
50. ____ can expand and shrink ext2 and ext3 file systems
rpm -V
ServerAdmin
resize2fs
mke2fs