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. rpm option to show me the package files
CustomLog
-l
ServerName
/var/ftp/pub
2. 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.
rpm -qc
elinks
iptables -F
lvextend -L4G /dev/rootvg/tmplv
3. 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
lvdisplay -D /dev/rootvg/tmplv
filesystem type is not ext2 or ext3
/boot
NameVirtualHost
4. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
-i (do not use -U or -F!)
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)
-i
fdisk
5. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
parted; check x
setsebool -P htttpd.enable.homedirs 1
ServerTokens
resize2fs
6. Where is the config dir for vsftpd?
/etc/vsftpd
-K
filesystem type is not ext2 or ext3
/ (root) - /boot and linux swap
7. Where is the main apache data directory?
var/www/html
-l
chmod 701
/etc/init.d/vsftpd start
8. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd restart
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -F
9. rpm ____ [name of package] to verify the package - once you have manually imported the key
elinks
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
-K
10. What parts of rhel6 should be installed to separate volumes?
/etc/squid/
/ (root) - /boot and linux swap
rpm -Va
fdisk
11. 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 ____
rpm -e zip
rpm -V
e2fsadm
yum install httpd
12. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
showmount -e
ServerName
port 21
/media/repodata
13. httpd ___ shows me what config files were installed when the httpd package was installed
/etc/vsftpd
yum -y update
rpm -qc
select (followed by the device name such as /dev/hdb)
14. Where is vsftpd.conf?
yum install mod_ssl squid
parted; mklabel k
/etc/vsftpd
ServerAdmin
15. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
filesystem type is not ext2 or ext3
/etc/init.d/httpd start
showmount -a
/var/ftp/pub
16. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
setsebool -P htttpd.enable.homedirs 1
5
chkconfig httpd on
lvextend -L4G /dev/rootvg/tmplv
17. The rpm ____ option installs the package - if it isn't already installed.
-i
rpm -qc
-i (do not use -U or -F!)
dumpe2fs
18. What service is allowed through the default firewall?
parted /dev/hda print
ssh
/ (root) - /boot and linux swap
rpm -ivh --replacepkgs xxxx*
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.
lvextend -L4G /dev/rootvg/tmplv
LVM
htpasswd -c /etc/httpd/webpass e
rpm -V
20. Tthe file that might contain: oldvg - rootvg - etc.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/lvmtab
lvdisplay -D /dev/rootvg/tmplv
/etc/init.d/httpd restart
21. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
ServerName
lvextend -L4G /dev/rootvg/tmplv
select (followed by the device name such as /dev/hdb)
22. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -Va
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
var/www/html
yum update kernel
23. 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
rpm -V
system-config-firewall
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
setsebool -P squid_connect_any 1
24. You can use the ____ tool after installation to add any package groups that you missed.
/etc/init.d/httpd restart
mke2fs
ServerName
pirut
25. Run the ____ command to find the device associated with the USB key.
-K
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
htpasswd -c /etc/httpd/webpass e
fdisk -l
26. '____ /var/www' will tell you the ACL settings of /var/www
yum install httpd
ls -Z
htpasswd -c /etc/httpd/webpass e
/etc/httpd/conf/
27. 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 ____
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)
elinks
-l
AllowOverride
28. The main Squid configuration file is ____/squid.conf
tune2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/squid/
fdisk -l
29. Where to find the main apache config file?
/etc/httpd/conf/
resize2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
CustomLog
30. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
elinks
resize2fs /dev/myvg/homevol
ls -Z
dd if=./diskboot.img of=/dev/sdc
31. When you configure Squid on your system - you need to allow access through appropriate ports and SELinux settings. The simplest approach with respect to Squid configuration assumes that all clients use the default Squid port 3128 - using TCP - where
chkconfig httpd on
chkconfig --level 35 httpd on
iptables
lvextend -L4G /dev/rootvg/tmplv
32. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
var/ftp/pub
setsebool -P htttpd.enable.homedirs 1
htpasswd -c /etc/httpd/webpass e
ErrorLog
33. ____ prints superblock and block group information.
dumpe2fs
chmod 701
ServerName
Yes
34. what utility can be used to open port 80?
chkconfig vsftpd on
system-config-firewall
rpm -V zip
pirut
35. To check status of ftp daemon
service vsftpd status
parted /dev/hda print
-i
grep '[.*]' server1.repo
36. How to start the vsftp service automatically on boot?
AllowOverride
chkconfig vsftpd on
e2fsadm
rpm -Va
37. The simplest way to install Apache
/etc/lvmtab
yum install httpd
chkconfig --level 35 httpd on
var/ftp/pub
38. rpm ____ verifies the installed zip rpm against the rpm database
showmount -a
rpm -V zip
lvextend -L4G /dev/rootvg/tmplv
filesystem type is not ext2 or ext3
39. What is the first post installation step?
iptables -F
First boot process
yum -y update
AllowOverride
40. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
setsebool -P htttpd.enable.homedirs 1
/etc/init.d/httpd start
var/ftp/pub
41. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
tune2fs
ErrorLog
mke2fs
chmod 705
42. How to start apache service?
/etc/vsftpd
chkconfig --level 35 httpd on
-i
/etc/init.d/httpd start
43. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ssh
-l
(rpm -q)p file (for rpmfile name)
ServerAdmin
44. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
wget (http://devmon.dev.schwab.com/index.html)
Yes
chmod 701
45. Where is the vsftp pub dir?
resize2fs /dev/myvg/homevol
/var/ftp/pub
-i
chkconfig --level 35 httpd on
46. How do you restart the apache web server?
parted; mklabel k
CustomLog
/etc/init.d/httpd restart
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
47. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chkconfig --list httpd
select (followed by the device name such as /dev/hdb)
wget (http://devmon.dev.schwab.com/index.html)
ServerAdmin
48. If in doubt about package names - you can find them in the ...
port 21
tune2fs
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)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
49. rpm ____ to install kernel updates
yum install vsftpd
htpasswd -c /etc/httpd/webpass e
-i (do not use -U or -F!)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
50. httpd ___ to update the httpd package - automatically answering yes to all the questions
var/ftp/pub
/etc/squid/
yum -y update
parted; check x