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. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
rpm -V
/etc/vsftpd
/etc/init.d/httpd restart
2. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
mke2fs
chmod 705
5
-K
3. 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
(rpm -q)p file (for rpmfile name)
yum -y update
AllowOverride
chcon -R -t httpd_sys_content_t /home/michael/public_html
4. You can use the ____ tool after installation to add any package groups that you missed.
wget (http://devmon.dev.schwab.com/index.html)
rpm -ivh --replacepkgs xxxx*
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
pirut
5. What command starts the same menu as the text-mode First Boot process?
setup
dd if=./diskboot.img of=/dev/sdc
nfs
rpm -V
6. 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
chkconfig --list httpd
/etc/vsftpd
5
7. To check status of ftp daemon
service vsftpd status
yum install httpd
/etc/init.d/vsftpd start
showmount -e
8. Create a disk label for the partition table called k
service vsftpd status
LVM
parted; mklabel k
/etc/lvmtab
9. 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
rpm -V
ServerTokens
(rpm -q)p file (for rpmfile name)
/etc/vsftpd
10. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
iptables
-K
ServerAdmin
setup
11. Where is the vsftp pub dir?
--import file
/var/ftp/pub
ServerAdmin
/etc/init.d/vsftpd start
12. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
/etc/httpd/conf/
elinks
iptables
13. Apache supports security by specifying active ports through the Listen and ____ directives.
ErrorLog
NameVirtualHost
mke2fs
dumpe2fs
14. How to start the vsftp service automatically on boot?
yum update kernel
chkconfig vsftpd on
iptables -F
/ (root) - /boot and linux swap
15. pam ___ will tell me if any files in the pam package have changed since it was first installed
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)
(rpm -q)p file (for rpmfile name)
LVM
rpm -V
16. How to start the vsftp service?
rpm -V zip
fdisk -l
/etc/init.d/vsftpd start
elinks
17. Virtual Host Configuration: Names the URL for the virtual host.
yum install httpd
/ (root) - /boot and linux swap
-K
ServerName
18. ____ is used for creating ext2 and ext3 file systems
dd if=./diskboot.img of=/dev/sdc
mke2fs
lvdisplay -D /dev/rootvg/tmplv
yum install vsftpd
19. How to install vsftpd?
yum install vsftpd
/etc/vsftpd
fdisk -l
CustomLog
20. Where is the main apache data directory?
var/www/html
rpm -V
showmount -a
elinks
21. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
chmod 705
parted /dev/hda print
ServerName
dd if=./diskboot.img of=/dev/sdc
22. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
lvdisplay -D /dev/rootvg/tmplv
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
23. Where to find the main apache config file?
telnetd : ALL EXCEPT 192.168.1.10
/etc/httpd/conf/
htpasswd -c /etc/httpd/webpass e
setsebool -P htttpd.enable.homedirs 1
24. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
parted; mklabel k
filesystem type is not ext2 or ext3
lvextend -L4G /dev/rootvg/tmplv
fdisk
25. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
wget (http://devmon.dev.schwab.com/index.html)
/etc/vsftpd
ls -Z
26. ____ configuration is not available via text mode RHEL installation.
wget (http://devmon.dev.schwab.com/index.html)
LVM
/etc/init.d/httpd restart
yum install httpd
27. How to start apache service?
yum -y update
rpm -qc
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/httpd start
28. Are SELinux and iptables-based firewalls are enabled by default?
elinks
LVM
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
Yes
29. How to install apache?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
CustomLog
yum install httpd
/etc/vsftpd
30. What service is allowed through the default firewall?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ssh
squid -z
rpm -V zip
31. 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
/media/repodata
yum clean all
ServerTokens
32. 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)
yum install vsftpd
e2fsadm
mke2fs
33. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
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)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
34. 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
fdisk -l
chkconfig vsftpd on
-i
35. The simplest way to install Apache
showmount -a
setsebool -P htttpd.enable.homedirs 1
yum install httpd
rpm -V
36. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
(rpm -q)p file (for rpmfile name)
/etc/lvmtab
chkconfig --level 35 httpd on
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
37. rpm ____ to install kernel updates
elinks
rpm -V
-i (do not use -U or -F!)
/etc/vsftpd
38. If in doubt about package names - you can find them in the ...
iptables -F
/etc/init.d/httpd start
-K
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)
39. 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:
setsebool -P squid_connect_any 1
showmount -e
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
dumpe2fs
40. 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:
htpasswd -c /etc/httpd/webpass e
--import file
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
41. rpm ____ [name of package] to verify the package - once you have manually imported the key
parted /dev/hda print
rpm -qc
LVM
-K
42. 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
squid -z
setup
ServerTokens
iptables
43. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
mke2fs
lvdisplay -D /dev/rootvg/tmplv
setsebool -P htttpd.enable.homedirs 1
Yes
44. 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
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
NameVirtualHost
/etc/vsftpd
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)
/etc/httpd/conf/
fdisk
e2fsadm
mke2fs
46. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
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)
NameVirtualHost
/etc/lvmtab
showmount -a
47. Where is the config dir for vsftpd?
/etc/vsftpd
/etc/squid/
iptables
resize2fs
48. 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
setsebool -P squid_connect_any 1
lvextend -L4G /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
select (followed by the device name such as /dev/hdb)
49. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
select (followed by the device name such as /dev/hdb)
chmod 701
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
50. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
var/www/html
/var/ftp/pub
wget (http://devmon.dev.schwab.com/index.html)
--import file