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: Assigns an e-mail address for the specified virtual host.
setsebool -P squid_connect_any 1
elinks
ServerAdmin
parted; check x
2. Run the ____ command to find the device associated with the USB key.
iptables -F
AllowOverride
htpasswd -c /etc/httpd/webpass e
fdisk -l
3. Are SELinux and iptables-based firewalls are enabled by default?
rpm -ivh --replacepkgs xxxx*
yum install vsftpd
/etc/httpd/conf/
Yes
4. Where to find the main apache config file?
/etc/init.d/vsftpd start
chcon -R -t httpd_sys_content_t /home/michael/public_html
var/ftp/pub
/etc/httpd/conf/
5. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
var/ftp/pub
rpm -e zip
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
6. The simplest way to install Apache
setsebool -P htttpd.enable.homedirs 1
filesystem type is not ext2 or ext3
yum install mod_ssl squid
yum install httpd
7. 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:
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
htpasswd -c /etc/httpd/webpass e
resize2fs
-K
8. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
/ (root) - /boot and linux swap
yum install httpd
fdisk -l
showmount -a
9. How to disable the firewall on the current system?
e2fsadm
rpm -Va
iptables -F
fdisk -l
10. rpm option to show me the package files
chmod 705
fdisk
-l
dumpe2fs
11. 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
/etc/vsftpd
/ (root) - /boot and linux swap
/etc/httpd/conf/
12. After you edit /etc/exports - run service ___ stop...
ServerTokens
nfs
iptables
chcon -R -t httpd_sys_content_t /home/michael/public_html
13. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
ServerName
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk
rpm -qc
14. ____ configuration is not available via text mode RHEL installation.
elinks
LVM
chkconfig httpd on
ServerAdmin
15. To check status of ftp daemon
/etc/vsftpd
dumpe2fs
chkconfig httpd on
service vsftpd status
16. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
NameVirtualHost
chcon -R -t httpd_sys_content_t /home/michael/public_html
17. httpd ___ shows me what config files were installed when the httpd package was installed
parted; check x
rpm -qc
/etc/vsftpd
-i
18. rpm ____ verifies all installed rpms against the rpm database
dd if=./diskboot.img of=/dev/sdc
elinks
ssh
rpm -Va
19. 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)
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)
showmount -e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
20. You can use the ____ tool after installation to add any package groups that you missed.
pirut
parted; check x
/etc/init.d/vsftpd start
yum install vsftpd
21. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chkconfig vsftpd on
rpm -V zip
setsebool -P htttpd.enable.homedirs 1
elinks
22. To list under which run levels the web service will start
-K
/etc/squid/
chkconfig --list httpd
lvdisplay -D /dev/rootvg/tmplv
23. what utility can be used to open port 80?
squid -z
system-config-firewall
ServerAdmin
AllowOverride
24. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
htpasswd -c /etc/httpd/webpass e
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chmod 701
25. Where is vsftpd.conf?
var/ftp/pub
htpasswd -c /etc/httpd/webpass e
telnetd : ALL EXCEPT 192.168.1.10
/etc/vsftpd
26. To install both mod_ssl and squid packages
ServerAdmin
First boot process
yum install httpd
yum install mod_ssl squid
27. 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
resize2fs /dev/myvg/homevol
NameVirtualHost
/boot
yum update kernel
28. 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.
/etc/init.d/httpd start
/etc/vsftpd
rpm -V
yum install httpd
29. What is the first post installation step?
-i (do not use -U or -F!)
DocumentRoot
/etc/vsftpd
First boot process
30. How to start the vsftp service?
chkconfig vsftpd on
/etc/init.d/vsftpd start
chkconfig --list httpd
ServerAdmin
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 ____
/etc/init.d/vsftpd start
rpm -e zip
chkconfig vsftpd on
/ (root) - /boot and linux swap
32. What command starts the same menu as the text-mode First Boot process?
squid -z
setup
/boot
yum install vsftpd
33. '____ /var/www' will tell you the ACL settings of /var/www
yum -y update
ls -Z
dumpe2fs
yum update kernel
34. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chkconfig --level 35 httpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
/var/ftp/pub
35. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
fdisk -l
LVM
/etc/lvmtab
36. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
Yes
lvdisplay -D /dev/rootvg/tmplv
chkconfig httpd on
37. rpm ____ to import the rpm key for integrity checking
showmount -a
--import file
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
htpasswd -c /etc/httpd/webpass e
38. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
iptables
-i (do not use -U or -F!)
/etc/init.d/httpd start
wget (http://devmon.dev.schwab.com/index.html)
39. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --list httpd
/etc/vsftpd
yum install httpd
40. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
chkconfig httpd on
Yes
(rpm -q)p file (for rpmfile name)
41. How to make sure apache starts automatically on next reboot?
lvdisplay -D /dev/rootvg/tmplv
yum install vsftpd
resize2fs /dev/myvg/homevol
chkconfig httpd on
42. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
/var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
5
yum update kernel
43. 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
chkconfig vsftpd on
ServerTokens
port 21
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
44. How to install vsftpd?
grep '[.*]' server1.repo
htpasswd -c /etc/httpd/webpass e
/etc/init.d/httpd restart
yum install vsftpd
45. If in doubt about package names - you can find them in the ...
/media/repodata
First boot process
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)
ServerName
46. 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
e2fsadm
-l
chcon -R -t httpd_sys_content_t /home/michael/public_html
/media/repodata
47. How to start the vsftp service automatically on boot?
yum install httpd
DocumentRoot
-l
chkconfig vsftpd on
48. ____ is used to modify file system parameters
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
tune2fs
/etc/lvmtab
CustomLog
49. How do you restart the apache web server?
/etc/init.d/httpd restart
(rpm -q)p file (for rpmfile name)
htpasswd -c /etc/httpd/webpass e
chmod 705
50. 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.
elinks
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -F