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. The rpm ____ option installs the package - if it isn't already installed.
-i
select (followed by the device name such as /dev/hdb)
service vsftpd status
fdisk
2. Perform a simple check of the file system. minor-num is x.
setup
parted; check x
service vsftpd status
/etc/vsftpd
3. httpd ___ shows me what config files were installed when the httpd package was installed
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -qc
fdisk -l
ServerName
4. Run the ____ command to find the device associated with the USB key.
fdisk -l
/etc/vsftpd
chkconfig vsftpd on
e2fsadm
5. 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:
rpm -V
First boot process
htpasswd -c /etc/httpd/webpass e
DocumentRoot
6. httpd ___ to update the httpd package - automatically answering yes to all the questions
NameVirtualHost
yum update kernel
yum -y update
/etc/squid/
7. What command starts the same menu as the text-mode First Boot process?
elinks
service vsftpd status
Yes
setup
8. 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 ____
resize2fs
dumpe2fs
elinks
telnetd : ALL EXCEPT 192.168.1.10
9. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
/etc/vsftpd
/media/repodata
NameVirtualHost
lvdisplay -D /dev/rootvg/tmplv
10. 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
AllowOverride
(rpm -q)p file (for rpmfile name)
CustomLog
11. Apache supports security by specifying active ports through the Listen and ____ directives.
lvextend -L4G /dev/rootvg/tmplv
NameVirtualHost
ServerName
squid -z
12. How do you restart the apache web server?
/etc/init.d/httpd restart
chkconfig --level 35 httpd on
squid -z
htpasswd -c /etc/httpd/webpass e
13. In httpd.conf - '____ None' disables any .htaccess files. Otherwise - .htaccess can allow others to administer your server - starting from the DocumentRoot directory. If .htaccess is in a subdirectory - such as /var/www/html/data/ - the additional di
yum -y update
AllowOverride
-K
5
14. 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)
resize2fs
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
chkconfig httpd on
15. 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
iptables
telnetd : ALL EXCEPT 192.168.1.10
NameVirtualHost
rpm -Va
16. 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
pirut
ServerTokens
mke2fs
wget (http://devmon.dev.schwab.com/index.html)
17. 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
CustomLog
rpm -qc
chkconfig --list httpd
18. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum install httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update
yum clean all
19. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
chkconfig vsftpd on
yum install mod_ssl squid
/etc/init.d/httpd restart
20. Where is vsftpd.conf?
squid -z
chkconfig --list httpd
/etc/vsftpd
/ (root) - /boot and linux swap
21. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
fdisk -l
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
22. What parts of rhel6 should be installed to separate volumes?
ErrorLog
resize2fs /dev/myvg/homevol
ServerAdmin
/ (root) - /boot and linux swap
23. ____ prints superblock and block group information.
dumpe2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
system-config-firewall
ssh
24. '____ /var/www' will tell you the ACL settings of /var/www
ErrorLog
parted; check x
ls -Z
chmod 705
25. Use parted to display disk geometry for /dev/hda and end up in shell
system-config-firewall
nfs
parted /dev/hda print
-K
26. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-K
setup
27. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/httpd start
fdisk -l
showmount -e
28. Create a disk label for the partition table called k
parted; mklabel k
NameVirtualHost
e2fsadm
showmount -e
29. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
/etc/squid/
ServerAdmin
yum update kernel
parted /dev/hda print
30. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
iptables -F
(rpm -q)p file (for rpmfile name)
pirut
NameVirtualHost
31. How to make sure apache starts automatically on next reboot?
service vsftpd status
chkconfig httpd on
resize2fs
yum -y update
32. Where to find the main apache config file?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/init.d/httpd start
tune2fs
/etc/httpd/conf/
33. Where is the main apache data directory?
elinks
var/www/html
chkconfig --level 35 httpd on
chmod 705
34. 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.
NameVirtualHost
rpm -Va
setup
rpm -V
35. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
-l
showmount -a
filesystem type is not ext2 or ext3
chmod 701
36. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
iptables -F
(rpm -q)p file (for rpmfile name)
ServerName
/boot
37. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
yum install httpd
rpm -V zip
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm -e zip
38. rpm option to show me the package files
iptables -F
-l
AllowOverride
resize2fs /dev/myvg/homevol
39. If in doubt about package names - you can find them in the ...
ls -Z
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
DocumentRoot
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)
40. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
ServerTokens
port 21
select (followed by the device name such as /dev/hdb)
41. ____ is used to modify file system parameters
rpm -Va
tune2fs
parted /dev/hda print
DocumentRoot
42. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
ls -Z
/etc/init.d/httpd start
NameVirtualHost
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
43. How to start the vsftp service?
/etc/squid/
ServerAdmin
/etc/init.d/vsftpd start
DocumentRoot
44. 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
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)
chkconfig --level 35 httpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
-K
45. 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)
/var/ftp/pub
grep '[.*]' server1.repo
chmod 701
46. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
fdisk
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
filesystem type is not ext2 or ext3
47. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
showmount -a
e2fsadm
/etc/vsftpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
48. ____ is used for creating ext2 and ext3 file systems
var/ftp/pub
squid -z
showmount -a
mke2fs
49. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
grep '[.*]' server1.repo
chkconfig --level 35 httpd on
chkconfig vsftpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
50. 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
First boot process
(rpm -q)p file (for rpmfile name)
-l
/boot