SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. How to start the vsftp service automatically on boot?
telnetd : ALL EXCEPT 192.168.1.10
chkconfig vsftpd on
yum update kernel
var/www/html
2. To list under which run levels the web service will start
ssh
chkconfig --list httpd
tune2fs
parted /dev/hda print
3. You can use the ____ tool after installation to add any package groups that you missed.
rpm -V
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
pirut
chcon -R -t httpd_sys_content_t /home/michael/public_html
4. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
ls -Z
showmount -a
DocumentRoot
grep '[.*]' server1.repo
5. 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)
-K
service vsftpd status
lvextend -L4G /dev/rootvg/tmplv
CustomLog
6. Perform a simple check of the file system. minor-num is x.
parted; check x
CustomLog
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/httpd restart
7. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
parted; check x
yum install vsftpd
-l
5
8. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
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)
fdisk
ServerAdmin
showmount -e
9. How do you restart the apache web server?
ServerTokens
iptables -F
/etc/init.d/httpd restart
squid -z
10. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
AllowOverride
nfs
dd if=./diskboot.img of=/dev/sdc
/etc/httpd/conf/
11. 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
/boot
ssh
yum install httpd
fdisk
12. 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 ____
setsebool -P htttpd.enable.homedirs 1
e2fsadm
rpm -e zip
tune2fs
13. 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
resize2fs
system-config-firewall
ServerTokens
var/ftp/pub
14. After you edit /etc/exports - run service ___ stop...
dd if=./diskboot.img of=/dev/sdc
nfs
/etc/lvmtab
yum install vsftpd
15. ____ is used to modify file system parameters
/etc/init.d/httpd restart
tune2fs
var/www/html
wget (http://devmon.dev.schwab.com/index.html)
16. How to start the vsftp service?
/etc/init.d/vsftpd start
grep '[.*]' server1.repo
/etc/vsftpd
ServerName
17. rpm ____ to install kernel updates
grep '[.*]' server1.repo
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-i (do not use -U or -F!)
filesystem type is not ext2 or ext3
18. Where is the config dir for vsftpd?
DocumentRoot
/etc/vsftpd
showmount -e
parted /dev/hda print
19. What command starts the same menu as the text-mode First Boot process?
yum update kernel
rpm -Va
resize2fs
setup
20. Where is the vsftp pub dir?
/var/ftp/pub
filesystem type is not ext2 or ext3
--import file
/etc/lvmtab
21. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
/var/ftp/pub
service vsftpd status
e2fsadm
22. 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
AllowOverride
(rpm -q)p file (for rpmfile name)
setsebool -P squid_connect_any 1
yum install mod_ssl squid
23. httpd ___ to update the httpd package - automatically answering yes to all the questions
e2fsadm
yum -y update
filesystem type is not ext2 or ext3
LVM
24. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
showmount -e
CustomLog
AllowOverride
25. pam ___ will tell me if any files in the pam package have changed since it was first installed
wget (http://devmon.dev.schwab.com/index.html)
system-config-firewall
rpm -V
nfs
26. The main Squid configuration file is ____/squid.conf
LVM
/etc/squid/
var/ftp/pub
/etc/httpd/conf/
27. Where is the main apache data directory?
/var/ftp/pub
yum -y update
var/www/html
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
28. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
-i (do not use -U or -F!)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
pirut
select (followed by the device name such as /dev/hdb)
29. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
/etc/init.d/httpd restart
yum -y update
setsebool -P htttpd.enable.homedirs 1
htpasswd -c /etc/httpd/webpass e
30. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chkconfig --level 35 httpd on
fdisk
wget (http://devmon.dev.schwab.com/index.html)
yum -y update
31. How to install apache?
rpm -V
yum install httpd
ServerName
/etc/lvmtab
32. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
(rpm -q)p file (for rpmfile name)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -Va
yum clean all
33. Create the basic cache directories in /var/spool/squid with the following command:
rpm -V zip
squid -z
chkconfig vsftpd on
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
34. What is the first post installation step?
iptables -F
LVM
First boot process
iptables
35. Are SELinux and iptables-based firewalls are enabled by default?
dd if=./diskboot.img of=/dev/sdc
wget (http://devmon.dev.schwab.com/index.html)
rpm -Va
Yes
36. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
NameVirtualHost
elinks
fdisk
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
37. What service is allowed through the default firewall?
ssh
DocumentRoot
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted /dev/hda print
38. 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
parted; mklabel k
telnetd : ALL EXCEPT 192.168.1.10
htpasswd -c /etc/httpd/webpass e
39. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -e zip
-K
yum install mod_ssl squid
rpm -qc
40. What is the standard directory for file sharing with vsFTP?
chkconfig --level 35 httpd on
/var/ftp/pub
var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
41. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
/etc/init.d/httpd start
parted /dev/hda print
AllowOverride
42. Use grep to count how many repositories have been configured in the file server1.repo
43. What parts of rhel6 should be installed to separate volumes?
-l
/ (root) - /boot and linux swap
-i (do not use -U or -F!)
showmount -a
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
showmount -a
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)
/boot
chcon -R -t httpd_sys_content_t /home/michael/public_html
45. How to install vsftpd?
/media/repodata
rpm -V
parted /dev/hda print
yum install vsftpd
46. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum -y update
mke2fs
yum install mod_ssl squid
select (followed by the device name such as /dev/hdb)
47. rpm ____ verifies all installed rpms against the rpm database
mke2fs
fdisk
rpm -Va
lvdisplay -D /dev/rootvg/tmplv
48. How to start apache service?
ServerAdmin
ls -Z
/var/ftp/pub
/etc/init.d/httpd start
49. Run the ____ command to find the device associated with the USB key.
ServerName
rpm -V
lvextend -L4G /dev/rootvg/tmplv
fdisk -l
50. 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
setsebool -P squid_connect_any 1
setsebool -P htttpd.enable.homedirs 1
var/www/html
telnetd : ALL EXCEPT 192.168.1.10