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. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk
NameVirtualHost
--import file
2. Tthe file that might contain: oldvg - rootvg - etc.
rpm -qc
/etc/lvmtab
showmount -e
parted; check x
3. The simplest way to install Apache
Yes
rpm -V zip
yum install httpd
service vsftpd status
4. How to install vsftpd?
/etc/httpd/conf/
rpm -Va
yum install vsftpd
NameVirtualHost
5. httpd ___ to update the httpd package - automatically answering yes to all the questions
LVM
AllowOverride
yum update kernel
yum -y update
6. ____ is used for creating ext2 and ext3 file systems
--import file
elinks
mke2fs
DocumentRoot
7. ____ is used to modify file system parameters
lvextend -L4G /dev/rootvg/tmplv
tune2fs
/etc/httpd/conf/
resize2fs
8. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ls -Z
filesystem type is not ext2 or ext3
yum update kernel
9. Run the ____ command to find the device associated with the USB key.
DocumentRoot
fdisk -l
/etc/init.d/httpd restart
grep '[.*]' server1.repo
10. Where to find the main apache config file?
elinks
chcon -R -t httpd_sys_content_t /home/michael/public_html
chkconfig --list httpd
/etc/httpd/conf/
11. rpm ____ verifies the installed zip rpm against the rpm database
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)
fdisk -l
rpm -e zip
rpm -V zip
12. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
rpm -Va
chmod 705
telnetd : ALL EXCEPT 192.168.1.10
pirut
13. '____ /var/www' will tell you the ACL settings of /var/www
pirut
ls -Z
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
showmount -e
14. How to install apache?
filesystem type is not ext2 or ext3
/etc/init.d/httpd restart
resize2fs /dev/myvg/homevol
yum install httpd
15. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
telnetd : ALL EXCEPT 192.168.1.10
yum install mod_ssl squid
iptables
16. 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
/var/ftp/pub
dumpe2fs
yum clean all
ServerTokens
17. 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:
fdisk
rpm -e zip
htpasswd -c /etc/httpd/webpass e
resize2fs
18. Create the basic cache directories in /var/spool/squid with the following command:
yum -y update
setup
fdisk -l
squid -z
19. Where is the main apache data directory?
var/www/html
dd if=./diskboot.img of=/dev/sdc
iptables
rpm -V
20. After you edit /etc/exports - run service ___ stop...
-K
lvdisplay -D /dev/rootvg/tmplv
nfs
rpm -ivh --replacepkgs xxxx*
21. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
var/ftp/pub
First boot process
lvextend -L4G /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
22. rpm ____ verifies all installed rpms against the rpm database
/media/repodata
CustomLog
/etc/squid/
rpm -Va
23. httpd ___ shows me what config files were installed when the httpd package was installed
First boot process
rpm -qc
setup
/etc/squid/
24. Where is the vsftp pub dir?
/etc/vsftpd
rpm -V
ssh
/var/ftp/pub
25. Are SELinux and iptables-based firewalls are enabled by default?
Yes
grep '[.*]' server1.repo
service vsftpd status
/etc/lvmtab
26. _____ will change the size of /dev/rootvg/tmplv to 4 gig
NameVirtualHost
yum clean all
lvextend -L4G /dev/rootvg/tmplv
parted; mklabel k
27. How to disable the firewall on the current system?
5
iptables -F
fdisk -l
lvextend -L4G /dev/rootvg/tmplv
28. How to start the vsftp service?
/etc/init.d/vsftpd start
/boot
/etc/init.d/httpd restart
ErrorLog
29. 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
-i (do not use -U or -F!)
chkconfig vsftpd on
lvdisplay -D /dev/rootvg/tmplv
AllowOverride
30. To check status of ftp daemon
service vsftpd status
rpm -V zip
e2fsadm
select (followed by the device name such as /dev/hdb)
31. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum clean all
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -qc
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 ____
-K
elinks
/boot
ServerName
33. rpm ____ to install kernel updates
yum install httpd
ServerTokens
telnetd : ALL EXCEPT 192.168.1.10
-i (do not use -U or -F!)
34. 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
35. 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
squid -z
yum update kernel
/var/ftp/pub
ssh
36. Where is vsftpd.conf?
ls -Z
/etc/init.d/httpd start
yum clean all
/etc/vsftpd
37. How to start the vsftp service automatically on boot?
htpasswd -c /etc/httpd/webpass e
chkconfig vsftpd on
AllowOverride
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
38. What command starts the same menu as the text-mode First Boot process?
iptables -F
rpm -V
resize2fs
setup
39. The main Squid configuration file is ____/squid.conf
-l
htpasswd -c /etc/httpd/webpass e
/etc/squid/
chcon -R -t httpd_sys_content_t /home/michael/public_html
40. what port needs to be open to access ftp?
parted /dev/hda print
service vsftpd status
elinks
port 21
41. Use parted to display disk geometry for /dev/hda and end up in shell
/etc/vsftpd
parted /dev/hda print
/var/ftp/pub
dd if=./diskboot.img of=/dev/sdc
42. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
fdisk -l
iptables
5
NameVirtualHost
43. 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
setsebool -P squid_connect_any 1
/etc/lvmtab
var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
44. rpm option to show me the package files
(rpm -q)p file (for rpmfile name)
-l
fdisk
fdisk -l
45. How to make sure apache starts automatically on next reboot?
LVM
rpm -V zip
lvdisplay -D /dev/rootvg/tmplv
chkconfig httpd on
46. 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.
resize2fs
iptables -F
chkconfig vsftpd on
(rpm -q)p file (for rpmfile name)
47. 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)
chkconfig --list httpd
(rpm -q)p file (for rpmfile name)
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)
48. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
/boot
-i (do not use -U or -F!)
iptables -F
49. What is the first post installation step?
yum clean all
/ (root) - /boot and linux swap
/etc/squid/
First boot process
50. Perform a simple check of the file system. minor-num is x.
yum install httpd
var/ftp/pub
parted; check x
elinks