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. _____ will change the size of /dev/rootvg/tmplv to 4 gig
yum install vsftpd
lvextend -L4G /dev/rootvg/tmplv
resize2fs
wget (http://devmon.dev.schwab.com/index.html)
2. rpm ____ verifies the installed zip rpm against the rpm database
AllowOverride
mke2fs
rpm -V zip
iptables
3. To check status of ftp daemon
NameVirtualHost
service vsftpd status
iptables -F
rpm -Va
4. 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
e2fsadm
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
CustomLog
/boot
5. If in doubt about package names - you can find them in the ...
yum install httpd
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)
resize2fs
6. what port needs to be open to access ftp?
port 21
rpm -V
system-config-firewall
yum update kernel
7. 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:
/ (root) - /boot and linux swap
showmount -e
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chkconfig --level 35 httpd on
8. 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.
setup
iptables -F
rpm -ivh --replacepkgs xxxx*
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
9. How to install vsftpd?
/etc/init.d/vsftpd start
yum install vsftpd
-i (do not use -U or -F!)
ServerAdmin
10. The main Squid configuration file is ____/squid.conf
/etc/vsftpd
/etc/init.d/httpd start
yum install httpd
/etc/squid/
11. rpm ____ verifies all installed rpms against the rpm database
chkconfig --list httpd
chkconfig httpd on
rpm -Va
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
12. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
e2fsadm
DocumentRoot
resize2fs /dev/myvg/homevol
NameVirtualHost
13. ____ configuration is not available via text mode RHEL installation.
LVM
htpasswd -c /etc/httpd/webpass e
showmount -e
yum install vsftpd
14. Run the ____ command to find the device associated with the USB key.
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
ServerTokens
NameVirtualHost
15. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
chcon -R -t httpd_sys_content_t /home/michael/public_html
var/ftp/pub
ErrorLog
/media/repodata
16. Tthe file that might contain: oldvg - rootvg - etc.
rpm -qc
/etc/lvmtab
rpm -Va
yum -y update
17. What is the standard directory for file sharing with vsFTP?
chmod 701
var/ftp/pub
dumpe2fs
/etc/init.d/httpd start
18. What service is allowed through the default firewall?
ssh
ServerAdmin
/etc/squid/
service vsftpd status
19. Create a disk label for the partition table called k
grep '[.*]' server1.repo
parted; mklabel k
rpm -V
pirut
20. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
Yes
5
dd if=./diskboot.img of=/dev/sdc
AllowOverride
21. Where is the vsftp pub dir?
/var/ftp/pub
/boot
ssh
fdisk -l
22. ____ can expand and shrink ext2 and ext3 file systems
chmod 701
/var/ftp/pub
htpasswd -c /etc/httpd/webpass e
resize2fs
23. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
parted /dev/hda print
resize2fs
wget (http://devmon.dev.schwab.com/index.html)
ErrorLog
24. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
AllowOverride
yum install httpd
ErrorLog
(rpm -q)p file (for rpmfile name)
25. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
Yes
ls -Z
lvdisplay -D /dev/rootvg/tmplv
grep '[.*]' server1.repo
26. pam ___ will tell me if any files in the pam package have changed since it was first installed
NameVirtualHost
ErrorLog
rpm -V
service vsftpd status
27. 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
wget (http://devmon.dev.schwab.com/index.html)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables
telnetd : ALL EXCEPT 192.168.1.10
28. 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.
parted /dev/hda print
rpm -V
setsebool -P squid_connect_any 1
/etc/vsftpd
29. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
/media/repodata
rpm -V zip
chkconfig --level 35 httpd on
ServerAdmin
30. How to start the vsftp service automatically on boot?
elinks
/etc/httpd/conf/
resize2fs /dev/myvg/homevol
chkconfig vsftpd on
31. Apache supports security by specifying active ports through the Listen and ____ directives.
iptables -F
/boot
DocumentRoot
NameVirtualHost
32. httpd ___ to update the httpd package - automatically answering yes to all the questions
setsebool -P squid_connect_any 1
yum -y update
--import file
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
33. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
rpm -e zip
rpm -V
parted /dev/hda print
select (followed by the device name such as /dev/hdb)
34. To list under which run levels the web service will start
chkconfig --list httpd
ServerName
/etc/init.d/httpd start
/etc/init.d/httpd restart
35. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
/boot
grep '[.*]' server1.repo
htpasswd -c /etc/httpd/webpass e
36. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted; check x
yum clean all
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
37. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
select (followed by the device name such as /dev/hdb)
chmod 701
chkconfig --level 35 httpd on
grep '[.*]' server1.repo
38. How to start the vsftp service?
elinks
/etc/init.d/vsftpd start
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
39. To install both mod_ssl and squid packages
-i
squid -z
mke2fs
yum install mod_ssl squid
40. Use grep to count how many repositories have been configured in the file server1.repo
41. 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
showmount -a
port 21
ServerTokens
fdisk -l
42. 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)
rpm -ivh --replacepkgs xxxx*
--import file
CustomLog
DocumentRoot
43. ____ is used for creating ext2 and ext3 file systems
/etc/init.d/httpd start
mke2fs
5
elinks
44. 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:
htpasswd -c /etc/httpd/webpass e
ErrorLog
chkconfig httpd on
iptables -F
45. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -ivh --replacepkgs xxxx*
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --list httpd
-i
46. 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
/etc/vsftpd
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
squid -z
setsebool -P squid_connect_any 1
47. 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
squid -z
chkconfig --list httpd
lvdisplay -D /dev/rootvg/tmplv
48. rpm ____ to install kernel updates
iptables
lvdisplay -D /dev/rootvg/tmplv
/etc/httpd/conf/
-i (do not use -U or -F!)
49. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
showmount -a
fdisk
LVM
ServerName
50. Virtual Host Configuration: Sets a root directory for the virtual host.
lvextend -L4G /dev/rootvg/tmplv
DocumentRoot
/etc/httpd/conf/
htpasswd -c /etc/httpd/webpass e