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. 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 vsftpd on
setup
AllowOverride
telnetd : ALL EXCEPT 192.168.1.10
2. 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
chmod 701
nfs
port 21
ServerTokens
3. ____ is used for creating ext2 and ext3 file systems
rpm -ivh --replacepkgs xxxx*
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)
mke2fs
lvdisplay -D /dev/rootvg/tmplv
4. Virtual Host Configuration: Sets a root directory for the virtual host.
DocumentRoot
filesystem type is not ext2 or ext3
/etc/vsftpd
parted; mklabel k
5. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
/etc/vsftpd
system-config-firewall
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
resize2fs
6. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
DocumentRoot
wget (http://devmon.dev.schwab.com/index.html)
pirut
parted; check x
7. How to start apache service?
telnetd : ALL EXCEPT 192.168.1.10
ServerName
/etc/init.d/httpd start
tune2fs
8. 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/lvmtab
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
First boot process
9. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
yum install httpd
NameVirtualHost
5
chcon -R -t httpd_sys_content_t /home/michael/public_html
10. ____ configuration is not available via text mode RHEL installation.
var/www/html
wget (http://devmon.dev.schwab.com/index.html)
First boot process
LVM
11. Perform a simple check of the file system. minor-num is x.
/etc/httpd/conf/
e2fsadm
resize2fs
parted; check x
12. 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
ls -Z
/etc/vsftpd
service vsftpd status
yum update kernel
13. How to make sure apache starts automatically on next reboot?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
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 httpd on
ssh
14. 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
yum install httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : ALL EXCEPT 192.168.1.10
5
15. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
ssh
select (followed by the device name such as /dev/hdb)
rpm -V
First boot process
16. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
5
tune2fs
lvdisplay -D /dev/rootvg/tmplv
ServerAdmin
17. Where is the vsftp pub dir?
NameVirtualHost
/var/ftp/pub
nfs
chkconfig --list httpd
18. How to start the vsftp service?
(rpm -q)p file (for rpmfile name)
yum -y update
ServerTokens
/etc/init.d/vsftpd start
19. ____ is used to modify file system parameters
chkconfig --level 35 httpd on
chmod 705
ssh
tune2fs
20. ____ prints superblock and block group information.
-i (do not use -U or -F!)
dumpe2fs
(rpm -q)p file (for rpmfile name)
iptables
21. rpm ____ to install kernel updates
ServerTokens
-i (do not use -U or -F!)
tune2fs
showmount -a
22. After you edit /etc/exports - run service ___ stop...
lvdisplay -D /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
nfs
23. Use parted to display disk geometry for /dev/hda and end up in shell
/etc/httpd/conf/
elinks
-i (do not use -U or -F!)
parted /dev/hda print
24. For linux ext2 there is an easier way than using resize2fs. LVM 1 ships with a utility called __________ which does the lvextend and resize2fs for you (it can also do file system shrinking)
Yes
e2fsadm
5
yum install httpd
25. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
var/www/html
yum update kernel
-i
26. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
LVM
rpm -V
rpm -ivh --replacepkgs xxxx*
27. 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:
/etc/vsftpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted /dev/hda print
htpasswd -c /etc/httpd/webpass e
28. rpm ____ [name of package] to verify the package - once you have manually imported the key
grep '[.*]' server1.repo
rpm -e zip
DocumentRoot
-K
29. Are SELinux and iptables-based firewalls are enabled by default?
dumpe2fs
CustomLog
yum clean all
Yes
30. 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
setsebool -P squid_connect_any 1
e2fsadm
yum install httpd
yum -y update
31. 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)
/etc/init.d/httpd start
CustomLog
ls -Z
chmod 705
32. 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 ____
nfs
elinks
NameVirtualHost
yum install httpd
33. Where is the main apache data directory?
chcon -R -t httpd_sys_content_t /home/michael/public_html
var/www/html
tune2fs
NameVirtualHost
34. You can use the ____ tool after installation to add any package groups that you missed.
pirut
(rpm -q)p file (for rpmfile name)
yum -y update
/etc/vsftpd
35. what port needs to be open to access ftp?
/etc/init.d/httpd start
port 21
/boot
rpm -V zip
36. How to start the vsftp service automatically on boot?
/etc/init.d/httpd start
-K
lvextend -L4G /dev/rootvg/tmplv
chkconfig vsftpd on
37. What service is allowed through the default firewall?
rpm -V
iptables -F
DocumentRoot
ssh
38. what utility can be used to open port 80?
chmod 701
system-config-firewall
/etc/vsftpd
htpasswd -c /etc/httpd/webpass e
39. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
system-config-firewall
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install mod_ssl squid
40. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
NameVirtualHost
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -a
chmod 705
41. What command starts the same menu as the text-mode First Boot process?
rpm -Va
iptables -F
var/ftp/pub
setup
42. httpd ___ to update the httpd package - automatically answering yes to all the questions
DocumentRoot
yum -y update
chmod 705
chkconfig --level 35 httpd on
43. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
/ (root) - /boot and linux swap
rpm -ivh --replacepkgs xxxx*
parted; check x
44. The simplest way to install Apache
LVM
/etc/init.d/httpd restart
yum install httpd
/etc/squid/
45. Where is the config dir for vsftpd?
var/ftp/pub
/etc/vsftpd
/etc/squid/
mke2fs
46. 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
47. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
chkconfig httpd on
var/ftp/pub
(rpm -q)p file (for rpmfile name)
48. Run the ____ command to find the device associated with the USB key.
fdisk -l
chkconfig vsftpd on
yum install mod_ssl squid
yum clean all
49. The default Red Hat Enterprise Linux firewall blocks access to an NFS server. While inelegant - the following command 'flushes -' or turns off - the standard Linux firewall from the local computer.
/var/ftp/pub
chkconfig --level 35 httpd on
htpasswd -c /etc/httpd/webpass e
iptables -F
50. To check status of ftp daemon
fdisk
/media/repodata
service vsftpd status
var/www/html