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. Perform a simple check of the file system. minor-num is x.
wget (http://devmon.dev.schwab.com/index.html)
parted; check x
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)
yum clean all
2. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
setsebool -P htttpd.enable.homedirs 1
/media/repodata
/boot
htpasswd -c /etc/httpd/webpass e
3. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables
/etc/squid/
/ (root) - /boot and linux swap
4. 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
yum update kernel
/media/repodata
/etc/squid/
rpm -qc
5. what utility can be used to open port 80?
grep '[.*]' server1.repo
system-config-firewall
parted /dev/hda print
iptables -F
6. rpm ____ [name of package] to verify the package - once you have manually imported the key
ServerAdmin
dumpe2fs
-K
ServerTokens
7. What parts of rhel6 should be installed to separate volumes?
rpm -V zip
setup
/ (root) - /boot and linux swap
NameVirtualHost
8. How to disable the firewall on the current system?
iptables -F
DocumentRoot
--import file
lvextend -L4G /dev/rootvg/tmplv
9. rpm option to show me the package files
ServerName
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/httpd restart
-l
10. '____ /var/www' will tell you the ACL settings of /var/www
mke2fs
ls -Z
rpm -qc
-K
11. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
fdisk
ErrorLog
chmod 705
12. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
setsebool -P htttpd.enable.homedirs 1
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
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)
13. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/boot
-l
/etc/lvmtab
14. ____ prints superblock and block group information.
chkconfig vsftpd on
-i
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dumpe2fs
15. 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)
iptables -F
First boot process
rpm -ivh --replacepkgs xxxx*
16. To check status of ftp daemon
yum update kernel
iptables
service vsftpd status
elinks
17. 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
/media/repodata
ServerTokens
NameVirtualHost
chkconfig vsftpd on
18. Where is the config dir for vsftpd?
/etc/vsftpd
parted; check x
5
telnetd : ALL EXCEPT 192.168.1.10
19. Are SELinux and iptables-based firewalls are enabled by default?
dumpe2fs
port 21
Yes
AllowOverride
20. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
ServerAdmin
service vsftpd status
NameVirtualHost
-K
21. 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
22. How do you restart the apache web server?
service vsftpd status
lvextend -L4G /dev/rootvg/tmplv
tune2fs
/etc/init.d/httpd restart
23. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
dumpe2fs
rpm -V
chkconfig --level 35 httpd on
setsebool -P htttpd.enable.homedirs 1
24. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
rpm -e zip
rpm -Va
ServerAdmin
wget (http://devmon.dev.schwab.com/index.html)
25. How to install apache?
yum install httpd
ServerTokens
chmod 701
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
26. The simplest way to install Apache
htpasswd -c /etc/httpd/webpass e
ServerTokens
grep '[.*]' server1.repo
yum install httpd
27. Virtual Host Configuration: Names the URL for the virtual host.
telnetd : ALL EXCEPT 192.168.1.10
ServerName
system-config-firewall
/etc/vsftpd
28. what port needs to be open to access ftp?
chkconfig vsftpd on
chkconfig --level 35 httpd on
port 21
DocumentRoot
29. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
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)
showmount -a
tune2fs
rpm -V zip
30. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
var/www/html
-K
(rpm -q)p file (for rpmfile name)
CustomLog
31. Where to find the main apache config file?
yum install httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
fdisk -l
/etc/httpd/conf/
32. What is the first post installation step?
-i
/boot
dumpe2fs
First boot process
33. httpd ___ to update the httpd package - automatically answering yes to all the questions
-K
yum -y update
dumpe2fs
select (followed by the device name such as /dev/hdb)
34. Run the ____ command to find the device associated with the USB key.
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/vsftpd
fdisk -l
rpm -V
35. rpm ____ to install kernel updates
-i (do not use -U or -F!)
rpm -V
Yes
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
36. 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
/etc/vsftpd
setup
ServerTokens
37. Where is the vsftp pub dir?
chmod 701
/var/ftp/pub
chkconfig --level 35 httpd on
parted /dev/hda print
38. 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
fdisk -l
AllowOverride
chkconfig --level 35 httpd on
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
39. pam ___ will tell me if any files in the pam package have changed since it was first installed
CustomLog
/etc/init.d/httpd restart
yum install mod_ssl squid
rpm -V
40. How to start the vsftp service automatically on boot?
elinks
chkconfig vsftpd on
pirut
fdisk -l
41. Create a disk label for the partition table called k
parted; mklabel k
(rpm -q)p file (for rpmfile name)
e2fsadm
-l
42. If in doubt about package names - you can find them in the ...
showmount -e
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
squid -z
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)
43. How to start the vsftp service?
iptables
/etc/init.d/vsftpd start
port 21
/etc/vsftpd
44. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
--import file
fdisk -l
select (followed by the device name such as /dev/hdb)
yum install vsftpd
45. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
var/www/html
rpm -Va
ErrorLog
yum install httpd
46. You can use the ____ tool after installation to add any package groups that you missed.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
showmount -e
pirut
lvextend -L4G /dev/rootvg/tmplv
47. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
chmod 705
ls -Z
/etc/init.d/vsftpd start
48. 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)
-i (do not use -U or -F!)
iptables -F
ls -Z
CustomLog
49. httpd ___ shows me what config files were installed when the httpd package was installed
showmount -a
parted /dev/hda print
NameVirtualHost
rpm -qc
50. 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 -e
telnetd : ALL EXCEPT 192.168.1.10
grep '[.*]' server1.repo
elinks