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. 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
parted; mklabel k
iptables -F
rpm -V zip
2. Where to find the main apache config file?
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/httpd/conf/
filesystem type is not ext2 or ext3
3. How to install vsftpd?
yum update kernel
yum install httpd
yum install vsftpd
system-config-firewall
4. Apache supports security by specifying active ports through the Listen and ____ directives.
-l
NameVirtualHost
yum update kernel
iptables -F
5. 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
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/ (root) - /boot and linux swap
telnetd : ALL EXCEPT 192.168.1.10
yum -y update
6. rpm ____ to import the rpm key for integrity checking
--import file
select (followed by the device name such as /dev/hdb)
chkconfig vsftpd on
yum install httpd
7. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
setsebool -P htttpd.enable.homedirs 1
/etc/squid/
elinks
8. To list under which run levels the web service will start
rpm -qc
chkconfig --list httpd
lvextend -L4G /dev/rootvg/tmplv
yum update kernel
9. 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
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/squid/
setsebool -P squid_connect_any 1
10. Where is vsftpd.conf?
lvextend -L4G /dev/rootvg/tmplv
(rpm -q)p file (for rpmfile name)
service vsftpd status
/etc/vsftpd
11. To check status of ftp daemon
iptables
wget (http://devmon.dev.schwab.com/index.html)
service vsftpd status
Yes
12. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
/var/ftp/pub
/media/repodata
/etc/vsftpd
13. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
iptables
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
elinks
5
14. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
LVM
ServerAdmin
AllowOverride
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)
15. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
iptables -F
rpm -V
fdisk
showmount -a
16. To install both mod_ssl and squid packages
pirut
yum install mod_ssl squid
telnetd : ALL EXCEPT 192.168.1.10
chkconfig --list httpd
17. How to start the vsftp service automatically on boot?
DocumentRoot
system-config-firewall
tune2fs
chkconfig vsftpd on
18. httpd ___ shows me what config files were installed when the httpd package was installed
tune2fs
chkconfig --level 35 httpd on
rpm -qc
yum install vsftpd
19. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
lvextend -L4G /dev/rootvg/tmplv
NameVirtualHost
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
iptables
20. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
NameVirtualHost
parted /dev/hda print
yum install mod_ssl squid
fdisk -l
21. what utility can be used to open port 80?
dumpe2fs
fdisk -l
system-config-firewall
dd if=./diskboot.img of=/dev/sdc
22. The simplest way to install Apache
yum install httpd
showmount -e
chkconfig --level 35 httpd on
NameVirtualHost
23. 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:
CustomLog
/ (root) - /boot and linux swap
/etc/squid/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
24. Tthe file that might contain: oldvg - rootvg - etc.
filesystem type is not ext2 or ext3
/etc/lvmtab
rpm -qc
fdisk -l
25. After you edit /etc/exports - run service ___ stop...
chkconfig httpd on
yum update kernel
nfs
First boot process
26. 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:
resize2fs
CustomLog
chcon -R -t httpd_sys_content_t /home/michael/public_html
htpasswd -c /etc/httpd/webpass e
27. What command starts the same menu as the text-mode First Boot process?
-i (do not use -U or -F!)
lvextend -L4G /dev/rootvg/tmplv
chkconfig vsftpd on
setup
28. 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
ErrorLog
/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)
29. The main Squid configuration file is ____/squid.conf
/etc/squid/
/ (root) - /boot and linux swap
chmod 701
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
30. Run the ____ command to find the device associated with the USB key.
chkconfig httpd on
ErrorLog
parted; mklabel k
fdisk -l
31. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
rpm -V zip
fdisk -l
5
32. 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.
iptables -F
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
port 21
var/ftp/pub
33. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
Yes
pirut
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum clean all
34. 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)
chcon -R -t httpd_sys_content_t /home/michael/public_html
e2fsadm
yum install httpd
First boot process
35. How to install apache?
rpm -V
fdisk
yum install httpd
fdisk -l
36. rpm ____ verifies the installed zip rpm against the rpm database
tune2fs
DocumentRoot
-i (do not use -U or -F!)
rpm -V zip
37. 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
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/boot
NameVirtualHost
parted; check x
38. ____ configuration is not available via text mode RHEL installation.
yum update kernel
/media/repodata
LVM
dumpe2fs
39. How to start the vsftp service?
iptables -F
grep '[.*]' server1.repo
/etc/init.d/vsftpd start
setup
40. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
First boot process
mke2fs
CustomLog
select (followed by the device name such as /dev/hdb)
41. How to make sure apache starts automatically on next reboot?
LVM
DocumentRoot
chkconfig httpd on
5
42. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -qc
rpm -ivh --replacepkgs xxxx*
5
ssh
43. rpm option to show me the package files
-l
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/init.d/httpd restart
44. Are SELinux and iptables-based firewalls are enabled by default?
Yes
system-config-firewall
fdisk -l
yum install mod_ssl squid
45. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
rpm -qc
rpm -ivh --replacepkgs xxxx*
yum install vsftpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
46. How do you restart the apache web server?
/etc/init.d/httpd restart
-i (do not use -U or -F!)
tune2fs
resize2fs
47. Create the basic cache directories in /var/spool/squid with the following command:
tune2fs
rpm -ivh --replacepkgs xxxx*
filesystem type is not ext2 or ext3
squid -z
48. Virtual Host Configuration: Names the URL for the virtual host.
AllowOverride
/etc/vsftpd
/etc/squid/
ServerName
49. 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
yum update kernel
(rpm -q)p file (for rpmfile name)
lvextend -L4G /dev/rootvg/tmplv
chkconfig httpd on
50. ____ is used to modify file system parameters
tune2fs
var/www/html
5
ServerTokens