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. 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
2. How to start the vsftp service automatically on boot?
-K
iptables -F
port 21
chkconfig vsftpd on
3. rpm ____ to install kernel updates
chmod 705
ServerTokens
-i (do not use -U or -F!)
var/www/html
4. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
-i (do not use -U or -F!)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
var/www/html
parted; mklabel k
5. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
lvextend -L4G /dev/rootvg/tmplv
parted; mklabel k
yum install vsftpd
6. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
/media/repodata
lvdisplay -D /dev/rootvg/tmplv
yum install httpd
7. Use parted to display disk geometry for /dev/hda and end up in shell
yum install httpd
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)
parted /dev/hda print
8. To check status of ftp daemon
service vsftpd status
/etc/lvmtab
elinks
yum clean all
9. You can use the ____ tool after installation to add any package groups that you missed.
5
setsebool -P squid_connect_any 1
pirut
/etc/vsftpd
10. Perform a simple check of the file system. minor-num is x.
NameVirtualHost
parted; check x
var/ftp/pub
ServerName
11. If in doubt about package names - you can find them in the ...
yum install mod_ssl squid
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
yum update kernel
12. ____ is used to modify file system parameters
ServerAdmin
select (followed by the device name such as /dev/hdb)
ls -Z
tune2fs
13. 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:
First boot process
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
NameVirtualHost
(rpm -q)p file (for rpmfile name)
14. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chkconfig vsftpd on
setsebool -P htttpd.enable.homedirs 1
-K
--import file
15. How to make sure apache starts automatically on next reboot?
rpm -qc
fdisk
chkconfig httpd on
/etc/vsftpd
16. How do you restart the apache web server?
rpm -V
/etc/init.d/httpd restart
chkconfig httpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
17. How to disable the firewall on the current system?
(rpm -q)p file (for rpmfile name)
NameVirtualHost
iptables -F
filesystem type is not ext2 or ext3
18. Run the ____ command to find the device associated with the USB key.
fdisk -l
parted; mklabel k
-l
e2fsadm
19. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
service vsftpd status
rpm -e zip
fdisk
chmod 705
20. 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 ____
/boot
/etc/vsftpd
elinks
yum install vsftpd
21. rpm option to show me the package files
ServerAdmin
-i (do not use -U or -F!)
chkconfig --list httpd
-l
22. How to install vsftpd?
setup
nfs
yum install vsftpd
telnetd : ALL EXCEPT 192.168.1.10
23. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
-i
wget (http://devmon.dev.schwab.com/index.html)
select (followed by the device name such as /dev/hdb)
parted /dev/hda print
24. 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)
chkconfig httpd on
CustomLog
rpm -e zip
grep '[.*]' server1.repo
25. _____ will change the size of /dev/rootvg/tmplv to 4 gig
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
port 21
lvextend -L4G /dev/rootvg/tmplv
26. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/etc/httpd/conf/
select (followed by the device name such as /dev/hdb)
pirut
/media/repodata
27. How to start apache service?
/etc/init.d/httpd start
NameVirtualHost
rpm -e zip
var/ftp/pub
28. 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/init.d/httpd start
Yes
yum install mod_ssl squid
29. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
rpm -qc
pirut
port 21
30. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
rpm -ivh --replacepkgs xxxx*
select (followed by the device name such as /dev/hdb)
ssh
ServerName
31. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
elinks
-K
fdisk -l
32. Where is the vsftp pub dir?
yum install httpd
/var/ftp/pub
var/ftp/pub
telnetd : ALL EXCEPT 192.168.1.10
33. What is the first post installation step?
First boot process
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
parted /dev/hda print
34. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
wget (http://devmon.dev.schwab.com/index.html)
/etc/squid/
ErrorLog
htpasswd -c /etc/httpd/webpass e
35. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
(rpm -q)p file (for rpmfile name)
ServerAdmin
resize2fs /dev/myvg/homevol
setup
36. ____ is used for creating ext2 and ext3 file systems
iptables -F
mke2fs
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
37. What service is allowed through the default firewall?
ssh
DocumentRoot
ServerAdmin
yum install mod_ssl squid
38. 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)
LVM
/etc/init.d/httpd restart
-K
e2fsadm
39. 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)
setsebool -P htttpd.enable.homedirs 1
-i (do not use -U or -F!)
/media/repodata
40. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
chmod 701
tune2fs
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
41. httpd ___ shows me what config files were installed when the httpd package was installed
showmount -e
fdisk
rpm -qc
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
42. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
grep '[.*]' server1.repo
pirut
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
43. rpm ____ verifies the installed zip rpm against the rpm database
dd if=./diskboot.img of=/dev/sdc
rpm -ivh --replacepkgs xxxx*
rpm -V
rpm -V zip
44. rpm ____ verifies all installed rpms against the rpm database
-l
iptables -F
/boot
rpm -Va
45. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
filesystem type is not ext2 or ext3
var/www/html
yum install httpd
5
46. What command starts the same menu as the text-mode First Boot process?
chmod 705
setup
yum install vsftpd
showmount -a
47. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
5
ErrorLog
dd if=./diskboot.img of=/dev/sdc
lvdisplay -D /dev/rootvg/tmplv
48. How to install apache?
service vsftpd status
ServerAdmin
port 21
yum install httpd
49. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
CustomLog
chkconfig --level 35 httpd on
dd if=./diskboot.img of=/dev/sdc
fdisk
50. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/httpd/conf/
--import file
parted /dev/hda print
rpm -ivh --replacepkgs xxxx*