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 ____ verifies all installed rpms against the rpm database
/etc/init.d/httpd start
lvextend -L4G /dev/rootvg/tmplv
setsebool -P squid_connect_any 1
rpm -Va
2. 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
showmount -e
setsebool -P squid_connect_any 1
ssh
parted; mklabel k
3. What service is allowed through the default firewall?
parted; check x
ssh
dumpe2fs
setup
4. ____ prints superblock and block group information.
var/ftp/pub
rpm -e zip
rpm -Va
dumpe2fs
5. Perform a simple check of the file system. minor-num is x.
fdisk -l
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
parted; check x
nfs
6. rpm ____ to install kernel updates
fdisk -l
-i (do not use -U or -F!)
squid -z
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
7. How to start the vsftp service automatically on boot?
NameVirtualHost
CustomLog
yum update kernel
chkconfig vsftpd on
8. 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
yum -y update
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ErrorLog
iptables
9. rpm ____ verifies the installed zip rpm against the rpm database
port 21
fdisk -l
rpm -V zip
parted /dev/hda print
10. The simplest way to install Apache
chmod 705
setsebool -P squid_connect_any 1
yum install httpd
ServerName
11. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
iptables -F
squid -z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
12. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
-K
iptables
First boot process
13. 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
yum update kernel
telnetd : ALL EXCEPT 192.168.1.10
/etc/squid/
/etc/init.d/httpd restart
14. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
Yes
showmount -a
ErrorLog
chmod 705
15. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
/boot
lvdisplay -D /dev/rootvg/tmplv
dumpe2fs
16. ____ is used for creating ext2 and ext3 file systems
setsebool -P squid_connect_any 1
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
system-config-firewall
mke2fs
17. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
yum install httpd
18. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/vsftpd
parted /dev/hda print
rpm -ivh --replacepkgs xxxx*
AllowOverride
19. Where is vsftpd.conf?
iptables -F
yum install mod_ssl squid
/etc/vsftpd
showmount -a
20. Run the ____ command to find the device associated with the USB key.
filesystem type is not ext2 or ext3
rpm -V zip
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk -l
21. Use parted to display disk geometry for /dev/hda and end up in shell
rpm -V zip
telnetd : ALL EXCEPT 192.168.1.10
yum install httpd
parted /dev/hda print
22. How to start apache service?
select (followed by the device name such as /dev/hdb)
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
iptables -F
23. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
rpm -V
select (followed by the device name such as /dev/hdb)
--import file
24. What is the first post installation step?
-K
yum clean all
ServerAdmin
First boot process
25. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
resize2fs /dev/myvg/homevol
showmount -a
var/ftp/pub
/boot
26. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
chmod 705
lvextend -L4G /dev/rootvg/tmplv
Yes
27. Create a disk label for the partition table called k
parted /dev/hda print
parted; mklabel k
chcon -R -t httpd_sys_content_t /home/michael/public_html
/boot
28. The rpm ____ option installs the package - if it isn't already installed.
ServerAdmin
iptables -F
-i
e2fsadm
29. To check status of ftp daemon
resize2fs /dev/myvg/homevol
yum clean all
ServerAdmin
service vsftpd status
30. How to start the vsftp service?
/ (root) - /boot and linux swap
/etc/init.d/vsftpd start
-K
NameVirtualHost
31. 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 ____
e2fsadm
elinks
parted; mklabel k
rpm -e zip
32. 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
/etc/init.d/vsftpd start
LVM
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum install httpd
33. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
ServerTokens
dd if=./diskboot.img of=/dev/sdc
port 21
/etc/vsftpd
34. How to install apache?
grep '[.*]' server1.repo
setsebool -P squid_connect_any 1
fdisk -l
yum install httpd
35. To install both mod_ssl and squid packages
yum install mod_ssl squid
yum install httpd
fdisk -l
chkconfig --list httpd
36. 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)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs
/etc/lvmtab
37. To list under which run levels the web service will start
yum install httpd
resize2fs /dev/myvg/homevol
LVM
chkconfig --list httpd
38. Where to find the main apache config file?
showmount -a
-i (do not use -U or -F!)
/boot
/etc/httpd/conf/
39. If in doubt about package names - you can find them in the ...
ssh
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)
ServerAdmin
-K
40. httpd ___ to update the httpd package - automatically answering yes to all the questions
rpm -e zip
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum -y update
setsebool -P squid_connect_any 1
41. Apache supports security by specifying active ports through the Listen and ____ directives.
rpm -qc
/etc/lvmtab
service vsftpd status
NameVirtualHost
42. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chkconfig httpd on
rpm -V
system-config-firewall
ServerAdmin
43. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
/var/ftp/pub
chkconfig --level 35 httpd on
/ (root) - /boot and linux swap
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
44. ____ is used to modify file system parameters
tune2fs
NameVirtualHost
fdisk -l
yum clean all
45. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
parted; mklabel k
NameVirtualHost
/etc/vsftpd
squid -z
46. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
/ (root) - /boot and linux swap
setsebool -P squid_connect_any 1
telnetd : ALL EXCEPT 192.168.1.10
resize2fs /dev/myvg/homevol
47. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
setup
First boot process
48. How to install vsftpd?
var/www/html
yum install vsftpd
/var/ftp/pub
First boot process
49. pam ___ will tell me if any files in the pam package have changed since it was first installed
yum clean all
lvdisplay -D /dev/rootvg/tmplv
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
50. 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
var/www/html
yum update kernel
resize2fs /dev/myvg/homevol
dd if=./diskboot.img of=/dev/sdc