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. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -V
mke2fs
(rpm -q)p file (for rpmfile name)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
2. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
resize2fs
yum install vsftpd
AllowOverride
ErrorLog
3. If in doubt about package names - you can find them in the ...
nfs
dumpe2fs
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 update kernel
4. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
/ (root) - /boot and linux swap
/etc/squid/
yum clean all
5. Where to find the main apache config file?
rpm -V
filesystem type is not ext2 or ext3
/boot
/etc/httpd/conf/
6. '____ /var/www' will tell you the ACL settings of /var/www
yum install mod_ssl squid
wget (http://devmon.dev.schwab.com/index.html)
/etc/lvmtab
ls -Z
7. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
chmod 701
var/ftp/pub
fdisk
lvdisplay -D /dev/rootvg/tmplv
8. 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
/etc/vsftpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
wget (http://devmon.dev.schwab.com/index.html)
rpm -V
9. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
rpm -ivh --replacepkgs xxxx*
service vsftpd status
chkconfig --level 35 httpd on
resize2fs /dev/myvg/homevol
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 ____
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)
/etc/httpd/conf/
chkconfig vsftpd on
rpm -e zip
11. Perform a simple check of the file system. minor-num is x.
parted; check x
ErrorLog
lvextend -L4G /dev/rootvg/tmplv
mke2fs
12. How to disable the firewall on the current system?
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)
iptables -F
iptables
ErrorLog
13. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
/etc/init.d/vsftpd start
fdisk -l
setsebool -P htttpd.enable.homedirs 1
elinks
14. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
telnetd : ALL EXCEPT 192.168.1.10
dumpe2fs
select (followed by the device name such as /dev/hdb)
setsebool -P htttpd.enable.homedirs 1
15. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
rpm -V
var/ftp/pub
chkconfig httpd on
16. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
(rpm -q)p file (for rpmfile name)
nfs
/etc/squid/
resize2fs /dev/myvg/homevol
17. rpm option to show me the package files
/etc/init.d/httpd restart
-l
ls -Z
setup
18. How to start the vsftp service?
chmod 705
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/vsftpd start
yum install httpd
19. The RPM database also maintains an MD5 checksum of each file. With the checksum - you can use the ____ package command to determine whether any file from that RPM package has changed.
/etc/init.d/httpd restart
setsebool -P htttpd.enable.homedirs 1
rpm -V
ssh
20. httpd ___ shows me what config files were installed when the httpd package was installed
pirut
setsebool -P squid_connect_any 1
rpm -qc
rpm -e zip
21. How to install apache?
rpm -Va
dd if=./diskboot.img of=/dev/sdc
yum install httpd
/media/repodata
22. ____ is used to modify file system parameters
telnetd : ALL EXCEPT 192.168.1.10
tune2fs
mke2fs
chkconfig --level 35 httpd on
23. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -Va
-i
iptables -F
24. 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.
yum update kernel
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 --level 35 httpd on
iptables -F
25. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
grep '[.*]' server1.repo
-i
/media/repodata
LVM
26. Create the basic cache directories in /var/spool/squid with the following command:
yum clean all
squid -z
parted /dev/hda print
/etc/init.d/httpd restart
27. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
dumpe2fs
/etc/squid/
fdisk
ssh
28. 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)
-i (do not use -U or -F!)
iptables -F
showmount -a
e2fsadm
29. rpm ____ to import the rpm key for integrity checking
ls -Z
rpm -Va
First boot process
--import file
30. ____ can expand and shrink ext2 and ext3 file systems
ServerTokens
resize2fs
rpm -Va
/etc/init.d/httpd start
31. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
setsebool -P htttpd.enable.homedirs 1
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/lvmtab
rpm -e zip
32. To list under which run levels the web service will start
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
rpm -ivh --replacepkgs xxxx*
rpm -qc
33. 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
/ (root) - /boot and linux swap
/boot
grep '[.*]' server1.repo
rpm -ivh --replacepkgs xxxx*
34. Where is vsftpd.conf?
/etc/vsftpd
setsebool -P htttpd.enable.homedirs 1
ServerTokens
-l
35. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
wget (http://devmon.dev.schwab.com/index.html)
chkconfig vsftpd on
filesystem type is not ext2 or ext3
36. ____ configuration is not available via text mode RHEL installation.
showmount -e
yum install httpd
LVM
-K
37. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
yum install mod_ssl squid
(rpm -q)p file (for rpmfile name)
/boot
38. The simplest way to install Apache
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig httpd on
yum install httpd
39. 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
chkconfig httpd on
resize2fs /dev/myvg/homevol
ServerTokens
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
40. 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
grep '[.*]' server1.repo
lvextend -L4G /dev/rootvg/tmplv
CustomLog
41. what port needs to be open to access ftp?
port 21
parted /dev/hda print
iptables -F
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
42. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
NameVirtualHost
rpm -Va
chkconfig httpd on
wget (http://devmon.dev.schwab.com/index.html)
43. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
elinks
showmount -e
iptables -F
44. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
grep '[.*]' server1.repo
setup
wget (http://devmon.dev.schwab.com/index.html)
45. What command starts the same menu as the text-mode First Boot process?
ErrorLog
setup
lvextend -L4G /dev/rootvg/tmplv
(rpm -q)p file (for rpmfile name)
46. 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)
CustomLog
grep '[.*]' server1.repo
var/ftp/pub
parted; mklabel k
47. What is the first post installation step?
resize2fs
First boot process
dumpe2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
48. The main Squid configuration file is ____/squid.conf
NameVirtualHost
elinks
dd if=./diskboot.img of=/dev/sdc
/etc/squid/
49. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
yum install httpd
yum -y update
grep '[.*]' server1.repo
chmod 701
50. Apache supports security by specifying active ports through the Listen and ____ directives.
ls -Z
NameVirtualHost
setsebool -P squid_connect_any 1
LVM