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. 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
DocumentRoot
/etc/vsftpd
iptables
AllowOverride
2. What service is allowed through the default firewall?
/etc/init.d/httpd start
CustomLog
ssh
/boot
3. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
rpm -Va
parted; check x
service vsftpd status
dd if=./diskboot.img of=/dev/sdc
4. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk
pirut
wget (http://devmon.dev.schwab.com/index.html)
5. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
yum install vsftpd
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
lvdisplay -D /dev/rootvg/tmplv
6. 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:
yum -y update
htpasswd -c /etc/httpd/webpass e
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
7. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
filesystem type is not ext2 or ext3
yum update kernel
/var/ftp/pub
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
8. The rpm ____ option installs the package - if it isn't already installed.
chkconfig --level 35 httpd on
port 21
-i
rpm -V
9. How to install apache?
iptables -F
showmount -e
yum install httpd
e2fsadm
10. Where is the config dir for vsftpd?
nfs
/etc/vsftpd
parted; check x
yum update kernel
11. Apache supports security by specifying active ports through the Listen and ____ directives.
iptables -F
/var/ftp/pub
yum -y update
NameVirtualHost
12. rpm option to show me the package files
chkconfig --level 35 httpd on
mke2fs
yum install httpd
-l
13. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
rpm -ivh --replacepkgs xxxx*
-l
parted /dev/hda print
14. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
/boot
chkconfig --list httpd
rpm -Va
15. The main Squid configuration file is ____/squid.conf
/boot
/etc/squid/
/etc/vsftpd
ls -Z
16. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
rpm -V
setsebool -P htttpd.enable.homedirs 1
resize2fs /dev/myvg/homevol
-i
17. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
LVM
wget (http://devmon.dev.schwab.com/index.html)
lvdisplay -D /dev/rootvg/tmplv
18. rpm ____ verifies all installed rpms against the rpm database
parted; mklabel k
First boot process
yum clean all
rpm -Va
19. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
showmount -a
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -e
20. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
AllowOverride
squid -z
dumpe2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
21. what port needs to be open to access ftp?
-i (do not use -U or -F!)
pirut
port 21
ServerTokens
22. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
select (followed by the device name such as /dev/hdb)
rpm -V
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
23. The simplest way to install Apache
setsebool -P squid_connect_any 1
/media/repodata
chmod 701
yum install httpd
24. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
mke2fs
fdisk -l
elinks
/ (root) - /boot and linux swap
25. Perform a simple check of the file system. minor-num is x.
dd if=./diskboot.img of=/dev/sdc
parted; check x
-i (do not use -U or -F!)
yum -y update
26. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
setup
fdisk
showmount -a
ServerTokens
27. You can check the status of your share. If it's working - you should see the contents of the /etc/exports directory when you run the following command:
showmount -e
chkconfig httpd on
nfs
iptables -F
28. rpm ____ to import the rpm key for integrity checking
--import file
dumpe2fs
/boot
nfs
29. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
setsebool -P squid_connect_any 1
yum install httpd
filesystem type is not ext2 or ext3
rpm -qc
30. 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
ServerName
/etc/vsftpd
ServerTokens
yum install mod_ssl squid
31. Create a disk label for the partition table called k
resize2fs /dev/myvg/homevol
select (followed by the device name such as /dev/hdb)
e2fsadm
parted; mklabel k
32. How to install vsftpd?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -e zip
setsebool -P htttpd.enable.homedirs 1
yum install vsftpd
33. 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/
/etc/lvmtab
setsebool -P squid_connect_any 1
var/www/html
34. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
parted /dev/hda print
showmount -e
ls -Z
yum clean all
35. Where is vsftpd.conf?
yum install httpd
/etc/vsftpd
e2fsadm
CustomLog
36. rpm ____ to install kernel updates
-i (do not use -U or -F!)
yum install httpd
NameVirtualHost
Yes
37. To install both mod_ssl and squid packages
yum install mod_ssl squid
chmod 701
chkconfig vsftpd on
htpasswd -c /etc/httpd/webpass e
38. 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
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
select (followed by the device name such as /dev/hdb)
var/ftp/pub
39. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
rpm -Va
e2fsadm
/media/repodata
chkconfig --level 35 httpd on
40. ____ is used to modify file system parameters
/etc/squid/
/etc/vsftpd
tune2fs
pirut
41. ____ prints superblock and block group information.
chkconfig --level 35 httpd on
showmount -e
Yes
dumpe2fs
42. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -e zip
ServerName
ErrorLog
/etc/init.d/httpd restart
43. If in doubt about package names - you can find them in the ...
NameVirtualHost
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
setsebool -P htttpd.enable.homedirs 1
44. ____ configuration is not available via text mode RHEL installation.
chkconfig --list httpd
/etc/init.d/vsftpd start
iptables -F
LVM
45. 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)
chkconfig vsftpd on
e2fsadm
--import file
var/www/html
46. Are SELinux and iptables-based firewalls are enabled by default?
wget (http://devmon.dev.schwab.com/index.html)
Yes
-i
system-config-firewall
47. 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
setsebool -P squid_connect_any 1
rpm -V zip
/ (root) - /boot and linux swap
CustomLog
48. After you edit /etc/exports - run service ___ stop...
service vsftpd status
nfs
-i
parted /dev/hda print
49. How to make sure apache starts automatically on next reboot?
resize2fs /dev/myvg/homevol
fdisk
/media/repodata
chkconfig httpd on
50. 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.
rpm -Va
rpm -V
chmod 701
var/ftp/pub