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. 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:
ErrorLog
ServerAdmin
Yes
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
2. To install both mod_ssl and squid packages
htpasswd -c /etc/httpd/webpass e
chkconfig httpd on
yum install mod_ssl squid
-K
3. For SELinux - you'll at least want to use the Security Level Configuration tool to activate the Allow Squid Daemon To Connect To The Network option - also known as the squid_connect_any boolean. Alternatively - you can activate this boolean with the
ssh
setsebool -P squid_connect_any 1
AllowOverride
mke2fs
4. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
First boot process
showmount -e
ServerTokens
5. Where is the config dir for vsftpd?
yum update kernel
wget (http://devmon.dev.schwab.com/index.html)
/etc/vsftpd
tune2fs
6. ____ prints superblock and block group information.
fdisk
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dumpe2fs
yum install vsftpd
7. '____ /var/www' will tell you the ACL settings of /var/www
showmount -e
ls -Z
LVM
5
8. 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
ServerTokens
/etc/vsftpd
-i (do not use -U or -F!)
squid -z
9. 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 ____
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)
rpm -e zip
dd if=./diskboot.img of=/dev/sdc
First boot process
10. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
resize2fs /dev/myvg/homevol
pirut
chmod 705
setup
11. Create a disk label for the partition table called k
/etc/squid/
yum -y update
ErrorLog
parted; mklabel k
12. The main Squid configuration file is ____/squid.conf
/etc/squid/
AllowOverride
parted; check x
DocumentRoot
13. How to install apache?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
rpm -V
yum install httpd
14. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
/etc/squid/
pirut
iptables -F
15. The simplest way to install Apache
yum install httpd
telnetd : ALL EXCEPT 192.168.1.10
elinks
/boot
16. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chmod 701
fdisk -l
-K
/var/ftp/pub
17. The rpm ____ option installs the package - if it isn't already installed.
fdisk
setsebool -P squid_connect_any 1
telnetd : ALL EXCEPT 192.168.1.10
-i
18. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
ls -Z
parted /dev/hda print
NameVirtualHost
yum install vsftpd
19. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
dd if=./diskboot.img of=/dev/sdc
/etc/init.d/httpd start
wget (http://devmon.dev.schwab.com/index.html)
ServerAdmin
20. Perform a simple check of the file system. minor-num is x.
chmod 705
NameVirtualHost
dumpe2fs
parted; check x
21. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
mke2fs
yum -y update
setup
22. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
dd if=./diskboot.img of=/dev/sdc
5
filesystem type is not ext2 or ext3
grep '[.*]' server1.repo
23. Where is the main apache data directory?
var/www/html
/etc/init.d/vsftpd start
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum update kernel
24. How do you restart the apache web server?
ssh
dd if=./diskboot.img of=/dev/sdc
yum -y update
/etc/init.d/httpd restart
25. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
NameVirtualHost
/media/repodata
showmount -a
26. 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:
showmount -e
ServerAdmin
-i (do not use -U or -F!)
wget (http://devmon.dev.schwab.com/index.html)
27. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : ALL EXCEPT 192.168.1.10
28. 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)
yum install httpd
CustomLog
ls -Z
29. What service is allowed through the default firewall?
ssh
parted; mklabel k
yum install httpd
ServerTokens
30. Where is vsftpd.conf?
rpm -e zip
AllowOverride
setsebool -P htttpd.enable.homedirs 1
/etc/vsftpd
31. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
/media/repodata
select (followed by the device name such as /dev/hdb)
rpm -V
32. 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)
chcon -R -t httpd_sys_content_t /home/michael/public_html
resize2fs
CustomLog
rpm -V zip
33. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
fdisk
service vsftpd status
filesystem type is not ext2 or ext3
setsebool -P htttpd.enable.homedirs 1
34. How to make sure apache starts automatically on next reboot?
5
select (followed by the device name such as /dev/hdb)
rpm -V
chkconfig httpd on
35. httpd ___ shows me what config files were installed when the httpd package was installed
chmod 701
rpm -qc
chcon -R -t httpd_sys_content_t /home/michael/public_html
service vsftpd status
36. rpm ____ to import the rpm key for integrity checking
mke2fs
fdisk -l
--import file
select (followed by the device name such as /dev/hdb)
37. Where is the vsftp pub dir?
nfs
ssh
chkconfig --level 35 httpd on
/var/ftp/pub
38. rpm option to show me the package files
ServerName
CustomLog
-l
NameVirtualHost
39. How to start apache service?
htpasswd -c /etc/httpd/webpass e
/etc/vsftpd
/etc/init.d/httpd start
nfs
40. 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
AllowOverride
DocumentRoot
nfs
rpm -qc
41. How to start the vsftp service?
setsebool -P htttpd.enable.homedirs 1
/etc/init.d/vsftpd start
yum -y update
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. After you edit /etc/exports - run service ___ stop...
nfs
parted /dev/hda print
DocumentRoot
NameVirtualHost
43. Are SELinux and iptables-based firewalls are enabled by default?
Yes
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
ErrorLog
44. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
chkconfig --level 35 httpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
45. 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 ____
chkconfig --level 35 httpd on
elinks
yum install mod_ssl squid
ServerName
46. You can use the ____ tool after installation to add any package groups that you missed.
rpm -e zip
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
pirut
47. rpm ____ to install kernel updates
chcon -R -t httpd_sys_content_t /home/michael/public_html
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
-i (do not use -U or -F!)
/etc/httpd/conf/
48. ____ configuration is not available via text mode RHEL installation.
yum update kernel
dumpe2fs
LVM
showmount -a
49. _____ will change the size of /dev/rootvg/tmplv to 4 gig
LVM
lvextend -L4G /dev/rootvg/tmplv
-i
iptables
50. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
rpm -ivh --replacepkgs xxxx*
chkconfig --level 35 httpd on
rpm -V zip
yum update kernel