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. _____ will change the size of /dev/rootvg/tmplv to 4 gig
/etc/init.d/httpd start
lvextend -L4G /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
First boot process
2. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
CustomLog
chmod 705
/etc/init.d/vsftpd start
3. 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.
(rpm -q)p file (for rpmfile name)
fdisk
rpm -V
select (followed by the device name such as /dev/hdb)
4. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
-i (do not use -U or -F!)
rpm -e zip
AllowOverride
fdisk
5. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
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
6. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
pirut
yum clean all
/etc/httpd/conf/
/ (root) - /boot and linux swap
7. rpm ____ verifies the installed zip rpm against the rpm database
select (followed by the device name such as /dev/hdb)
chkconfig httpd on
nfs
rpm -V zip
8. 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 -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chcon -R -t httpd_sys_content_t /home/michael/public_html
squid -z
setup
9. How to start the vsftp service?
chkconfig --list httpd
/etc/init.d/vsftpd start
yum install httpd
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)
10. Create a disk label for the partition table called k
telnetd : ALL EXCEPT 192.168.1.10
parted; mklabel k
yum install httpd
showmount -e
11. 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:
-i (do not use -U or -F!)
/var/ftp/pub
service vsftpd status
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
12. Virtual Host Configuration: Names the URL for the virtual host.
lvextend -L4G /dev/rootvg/tmplv
ServerName
showmount -a
/etc/squid/
13. You can use the ____ tool after installation to add any package groups that you missed.
fdisk -l
parted /dev/hda print
pirut
htpasswd -c /etc/httpd/webpass e
14. 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
dd if=./diskboot.img of=/dev/sdc
mke2fs
AllowOverride
parted /dev/hda print
15. rpm option to show me the package files
wget (http://devmon.dev.schwab.com/index.html)
-l
setup
yum -y update
16. The main Squid configuration file is ____/squid.conf
showmount -e
/etc/squid/
ls -Z
LVM
17. How do you restart the apache web server?
/etc/vsftpd
/etc/init.d/vsftpd start
ServerTokens
/etc/init.d/httpd restart
18. What is the first post installation step?
e2fsadm
5
First boot process
NameVirtualHost
19. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
iptables -F
setsebool -P htttpd.enable.homedirs 1
wget (http://devmon.dev.schwab.com/index.html)
-K
20. 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
setsebool -P htttpd.enable.homedirs 1
/media/repodata
/etc/lvmtab
21. The simplest way to install Apache
rpm -e zip
/etc/lvmtab
parted; mklabel k
yum install httpd
22. 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 ____
lvdisplay -D /dev/rootvg/tmplv
yum install httpd
elinks
chkconfig --level 35 httpd on
23. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
(rpm -q)p file (for rpmfile name)
chmod 701
htpasswd -c /etc/httpd/webpass e
24. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
rpm -e zip
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
showmount -a
lvdisplay -D /dev/rootvg/tmplv
25. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum install httpd
system-config-firewall
select (followed by the device name such as /dev/hdb)
pirut
26. 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.
rpm -V zip
iptables -F
squid -z
grep '[.*]' server1.repo
27. httpd ___ to update the httpd package - automatically answering yes to all the questions
pirut
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update
chkconfig httpd on
28. 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
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)
chcon -R -t httpd_sys_content_t /home/michael/public_html
grep '[.*]' server1.repo
setsebool -P squid_connect_any 1
29. 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
system-config-firewall
/boot
lvextend -L4G /dev/rootvg/tmplv
ServerName
30. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted; mklabel k
resize2fs
31. 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*
pirut
ErrorLog
service vsftpd status
32. Where is the main apache data directory?
LVM
var/www/html
resize2fs
var/ftp/pub
33. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
/etc/init.d/httpd restart
fdisk
squid -z
34. If in doubt about package names - you can find them in the ...
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)
tune2fs
/etc/vsftpd
Yes
35. rpm ____ to install kernel updates
tune2fs
NameVirtualHost
yum update kernel
-i (do not use -U or -F!)
36. ____ is used for creating ext2 and ext3 file systems
rpm -V zip
mke2fs
AllowOverride
iptables
37. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ServerTokens
mke2fs
38. Where is the config dir for vsftpd?
ServerTokens
/etc/vsftpd
/etc/init.d/httpd restart
parted; check x
39. How to start the vsftp service automatically on boot?
chkconfig httpd on
fdisk -l
chkconfig vsftpd on
iptables
40. How to install apache?
-K
yum install httpd
rpm -V
chmod 701
41. 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)
squid -z
ErrorLog
service vsftpd status
42. Virtual Host Configuration: Sets a root directory for the virtual host.
-K
DocumentRoot
grep '[.*]' server1.repo
/var/ftp/pub
43. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
iptables -F
/etc/init.d/vsftpd start
ServerAdmin
44. What command starts the same menu as the text-mode First Boot process?
wget (http://devmon.dev.schwab.com/index.html)
showmount -e
yum install httpd
setup
45. Tthe file that might contain: oldvg - rootvg - etc.
e2fsadm
iptables -F
rpm -e zip
/etc/lvmtab
46. You can check the status of your share. If it's working - you should see the contents of the /etc/exports directory when you run the following command:
fdisk
resize2fs
showmount -e
ls -Z
47. 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
iptables
/etc/vsftpd
var/ftp/pub
grep '[.*]' server1.repo
48. what port needs to be open to access ftp?
yum install httpd
port 21
rpm -V
/etc/init.d/httpd start
49. Apache supports security by specifying active ports through the Listen and ____ directives.
rpm -V
NameVirtualHost
CustomLog
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
50. What parts of rhel6 should be installed to separate volumes?
setsebool -P squid_connect_any 1
lvextend -L4G /dev/rootvg/tmplv
rpm -Va
/ (root) - /boot and linux swap