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 want to create a database file named webpass in the /etc/httpd directory - for user 'e' - you'd start with the following command:
tune2fs
htpasswd -c /etc/httpd/webpass e
yum -y update
chmod 701
2. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
CustomLog
showmount -a
setsebool -P squid_connect_any 1
chmod 705
3. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -Va
system-config-firewall
rpm -ivh --replacepkgs xxxx*
rpm -e zip
4. To check status of ftp daemon
service vsftpd status
yum install httpd
showmount -e
--import file
5. what utility can be used to open port 80?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd start
system-config-firewall
dd if=./diskboot.img of=/dev/sdc
6. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
rpm -ivh --replacepkgs xxxx*
wget (http://devmon.dev.schwab.com/index.html)
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
7. How to make sure apache starts automatically on next reboot?
/etc/vsftpd
rpm -V
setsebool -P squid_connect_any 1
chkconfig httpd on
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
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)
ServerTokens
yum install httpd
yum install mod_ssl squid
9. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
/etc/httpd/conf/
ssh
--import file
10. 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 ____
ServerAdmin
NameVirtualHost
rpm -e zip
mke2fs
11. How to disable the firewall on the current system?
/var/ftp/pub
elinks
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -F
12. 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
chkconfig --level 35 httpd on
setsebool -P squid_connect_any 1
/etc/vsftpd
AllowOverride
13. What is the first post installation step?
--import file
chkconfig vsftpd on
First boot process
rpm -Va
14. Tthe file that might contain: oldvg - rootvg - etc.
chkconfig --level 35 httpd on
/etc/lvmtab
dd if=./diskboot.img of=/dev/sdc
pirut
15. Create the basic cache directories in /var/spool/squid with the following command:
setsebool -P squid_connect_any 1
squid -z
chmod 701
showmount -a
16. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
yum install httpd
filesystem type is not ext2 or ext3
/etc/init.d/vsftpd start
tune2fs
17. Virtual Host Configuration: Sets a root directory for the virtual host.
showmount -a
yum update kernel
DocumentRoot
NameVirtualHost
18. '____ /var/www' will tell you the ACL settings of /var/www
ServerTokens
rpm -V zip
yum -y update
ls -Z
19. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
LVM
setsebool -P htttpd.enable.homedirs 1
--import file
20. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
-i
parted; check x
select (followed by the device name such as /dev/hdb)
/ (root) - /boot and linux swap
21. ____ is used for creating ext2 and ext3 file systems
nfs
mke2fs
yum install httpd
parted; check x
22. 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
yum update kernel
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -e
rpm -V
23. How do you restart the apache web server?
(rpm -q)p file (for rpmfile name)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ServerTokens
/etc/init.d/httpd restart
24. What parts of rhel6 should be installed to separate volumes?
/etc/vsftpd
--import file
var/www/html
/ (root) - /boot and linux swap
25. How to install apache?
yum install httpd
iptables -F
setsebool -P htttpd.enable.homedirs 1
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
26. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
/etc/lvmtab
dumpe2fs
chkconfig vsftpd on
27. 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
-l
setup
telnetd : ALL EXCEPT 192.168.1.10
service vsftpd status
28. Use grep to count how many repositories have been configured in the file server1.repo
29. 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
dd if=./diskboot.img of=/dev/sdc
squid -z
lvextend -L4G /dev/rootvg/tmplv
30. ____ is used to modify file system parameters
DocumentRoot
ls -Z
var/www/html
tune2fs
31. 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
ServerTokens
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 -qc
32. How to start the vsftp service?
dd if=./diskboot.img of=/dev/sdc
var/ftp/pub
DocumentRoot
/etc/init.d/vsftpd start
33. Where is the vsftp pub dir?
ErrorLog
DocumentRoot
chkconfig vsftpd on
/var/ftp/pub
34. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
parted; mklabel k
yum install mod_ssl squid
rpm -V
35. httpd ___ to update the httpd package - automatically answering yes to all the questions
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/lvmtab
36. Where is vsftpd.conf?
rpm -qc
/etc/vsftpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chcon -R -t httpd_sys_content_t /home/michael/public_html
37. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
select (followed by the device name such as /dev/hdb)
/etc/squid/
chkconfig httpd on
38. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
setsebool -P squid_connect_any 1
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -a
39. rpm ____ to install kernel updates
yum clean all
-i (do not use -U or -F!)
mke2fs
htpasswd -c /etc/httpd/webpass e
40. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
mke2fs
telnetd : ALL EXCEPT 192.168.1.10
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
41. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
ls -Z
var/www/html
yum install httpd
42. ____ prints superblock and block group information.
/var/ftp/pub
/etc/vsftpd
parted; check x
dumpe2fs
43. Where is the main apache data directory?
resize2fs /dev/myvg/homevol
/boot
Yes
var/www/html
44. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
parted /dev/hda print
/boot
dumpe2fs
(rpm -q)p file (for rpmfile name)
45. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
5
pirut
wget (http://devmon.dev.schwab.com/index.html)
46. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
system-config-firewall
DocumentRoot
filesystem type is not ext2 or ext3
NameVirtualHost
47. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
-i
yum clean all
lvdisplay -D /dev/rootvg/tmplv
yum install httpd
48. rpm ____ [name of package] to verify the package - once you have manually imported the key
var/www/html
-K
rpm -Va
/etc/init.d/httpd start
49. Where is the config dir for vsftpd?
chmod 705
/etc/vsftpd
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)
50. rpm option to show me the package files
yum clean all
-i (do not use -U or -F!)
rpm -Va
-l