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. How to start apache service?
/etc/init.d/httpd start
iptables -F
ls -Z
setsebool -P htttpd.enable.homedirs 1
2. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
elinks
iptables
3. ____ is used to modify file system parameters
-i (do not use -U or -F!)
/etc/vsftpd
tune2fs
-i
4. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
ServerName
ssh
iptables -F
5. What is the first post installation step?
First boot process
chmod 701
rpm -V
ErrorLog
6. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
/var/ftp/pub
yum update kernel
chmod 701
7. The rpm ____ option installs the package - if it isn't already installed.
-i
CustomLog
rpm -V
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
8. To install both mod_ssl and squid packages
setup
yum install mod_ssl squid
setsebool -P htttpd.enable.homedirs 1
parted /dev/hda print
9. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
setup
yum update kernel
10. rpm ____ verifies all installed rpms against the rpm database
Yes
rpm -Va
squid -z
(rpm -q)p file (for rpmfile name)
11. How to disable the firewall on the current system?
iptables -F
mke2fs
rpm -V zip
rpm -Va
12. You can use the ____ tool after installation to add any package groups that you missed.
parted; check x
wget (http://devmon.dev.schwab.com/index.html)
system-config-firewall
pirut
13. Create the basic cache directories in /var/spool/squid with the following command:
(rpm -q)p file (for rpmfile name)
setup
/etc/httpd/conf/
squid -z
14. httpd ___ shows me what config files were installed when the httpd package was installed
/media/repodata
wget (http://devmon.dev.schwab.com/index.html)
setsebool -P htttpd.enable.homedirs 1
rpm -qc
15. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
ServerAdmin
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install mod_ssl squid
16. Virtual Host Configuration: Names the URL for the virtual host.
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
ServerName
system-config-firewall
17. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
(rpm -q)p file (for rpmfile name)
setsebool -P htttpd.enable.homedirs 1
fdisk -l
setup
18. How to make sure apache starts automatically on next reboot?
rpm -V
squid -z
chkconfig httpd on
e2fsadm
19. 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
rpm -V
dumpe2fs
ssh
yum update kernel
20. ____ is used for creating ext2 and ext3 file systems
mke2fs
setsebool -P squid_connect_any 1
iptables -F
htpasswd -c /etc/httpd/webpass e
21. What command starts the same menu as the text-mode First Boot process?
iptables -F
rpm -V
/etc/init.d/httpd start
setup
22. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
var/www/html
chkconfig --level 35 httpd on
chkconfig --list httpd
-K
23. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
-l
yum install httpd
service vsftpd status
24. To check status of ftp daemon
service vsftpd status
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ls -Z
iptables -F
25. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
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)
resize2fs
select (followed by the device name such as /dev/hdb)
ServerAdmin
26. Where is vsftpd.conf?
system-config-firewall
ServerAdmin
/etc/vsftpd
yum install mod_ssl squid
27. rpm ____ to import the rpm key for integrity checking
ls -Z
First boot process
--import file
var/www/html
28. What parts of rhel6 should be installed to separate volumes?
elinks
pirut
rpm -e zip
/ (root) - /boot and linux swap
29. Tthe file that might contain: oldvg - rootvg - etc.
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ServerName
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/lvmtab
30. Where is the vsftp pub dir?
parted; check x
lvdisplay -D /dev/rootvg/tmplv
NameVirtualHost
/var/ftp/pub
31. Are SELinux and iptables-based firewalls are enabled by default?
First boot process
var/www/html
Yes
ErrorLog
32. 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
iptables -F
NameVirtualHost
ServerTokens
yum clean all
33. Create a disk label for the partition table called k
ServerName
parted; mklabel k
fdisk -l
elinks
34. The simplest way to install Apache
iptables -F
Yes
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install httpd
35. ____ prints superblock and block group information.
dumpe2fs
5
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
resize2fs
36. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
CustomLog
ssh
(rpm -q)p file (for rpmfile name)
AllowOverride
37. rpm ____ to install kernel updates
/etc/init.d/httpd start
-i (do not use -U or -F!)
yum install mod_ssl squid
var/ftp/pub
38. How to install apache?
yum install httpd
Yes
LVM
resize2fs
39. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
ls -Z
system-config-firewall
parted; check x
40. httpd ___ to update the httpd package - automatically answering yes to all the questions
service vsftpd status
yum -y update
chkconfig httpd on
yum install httpd
41. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
ssh
fdisk -l
/media/repodata
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)
42. How do you restart the apache web server?
/etc/init.d/httpd restart
LVM
chkconfig httpd on
var/ftp/pub
43. 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)
chkconfig vsftpd on
lvextend -L4G /dev/rootvg/tmplv
rpm -V zip
44. How to start the vsftp service automatically on boot?
setsebool -P squid_connect_any 1
chkconfig vsftpd on
service vsftpd status
rpm -qc
45. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
5
yum -y update
select (followed by the device name such as /dev/hdb)
46. ____ configuration is not available via text mode RHEL installation.
chmod 701
tune2fs
LVM
rpm -V
47. ___ 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)
ErrorLog
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)
elinks
48. 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
showmount -a
ServerName
telnetd : ALL EXCEPT 192.168.1.10
CustomLog
49. 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:
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -e zip
/etc/httpd/conf/
showmount -e
50. Where is the config dir for vsftpd?
iptables -F
/etc/vsftpd
chkconfig httpd on
rpm -V zip