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. Use grep to count how many repositories have been configured in the file server1.repo
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. '____ /var/www' will tell you the ACL settings of /var/www
system-config-firewall
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)
elinks
ls -Z
3. ____ is used to modify file system parameters
e2fsadm
showmount -a
tune2fs
ssh
4. Perform a simple check of the file system. minor-num is x.
--import file
fdisk
parted; check x
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
5. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
CustomLog
pirut
ErrorLog
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
6. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
/var/ftp/pub
-l
nfs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
7. What command starts the same menu as the text-mode First Boot process?
setup
-K
/etc/init.d/vsftpd start
var/ftp/pub
8. httpd ___ to update the httpd package - automatically answering yes to all the questions
parted /dev/hda print
yum -y update
iptables -F
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)
9. To install both mod_ssl and squid packages
yum install mod_ssl squid
pirut
iptables -F
chkconfig httpd on
10. How to disable the firewall on the current system?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -F
port 21
-K
11. Where is the config dir for vsftpd?
/etc/vsftpd
resize2fs
-i
iptables
12. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
yum clean all
system-config-firewall
var/www/html
13. If in doubt about package names - you can find them in the ...
lvdisplay -D /dev/rootvg/tmplv
yum update kernel
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)
/etc/httpd/conf/
14. rpm ____ verifies the installed zip rpm against the rpm database
yum install mod_ssl squid
parted /dev/hda print
telnetd : ALL EXCEPT 192.168.1.10
rpm -V zip
15. pam ___ will tell me if any files in the pam package have changed since it was first installed
chkconfig --level 35 httpd on
/etc/vsftpd
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 -V
16. 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
showmount -a
yum update kernel
resize2fs /dev/myvg/homevol
chcon -R -t httpd_sys_content_t /home/michael/public_html
17. What is the first post installation step?
/etc/squid/
rpm -e zip
First boot process
setup
18. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
chmod 701
19. Create a disk label for the partition table called k
/etc/init.d/vsftpd start
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chkconfig --list httpd
parted; mklabel k
20. 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:
/media/repodata
/etc/init.d/httpd start
First boot process
showmount -e
21. 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)
yum install httpd
yum update kernel
nfs
CustomLog
22. ____ prints superblock and block group information.
-i
setup
service vsftpd status
dumpe2fs
23. 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
fdisk -l
setsebool -P squid_connect_any 1
resize2fs
-i (do not use -U or -F!)
24. 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
rpm -V
lvextend -L4G /dev/rootvg/tmplv
25. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
chkconfig httpd on
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
fdisk
/etc/squid/
26. 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)
/etc/squid/
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)
parted /dev/hda print
27. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
/etc/vsftpd
chkconfig --level 35 httpd on
fdisk -l
ServerTokens
28. 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 -t httpd_sys_content_t /home/michael/public_html
iptables -F
5
mke2fs
29. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
dd if=./diskboot.img of=/dev/sdc
telnetd : ALL EXCEPT 192.168.1.10
First boot process
30. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
var/ftp/pub
dd if=./diskboot.img of=/dev/sdc
elinks
port 21
31. What is the standard directory for file sharing with vsFTP?
resize2fs
ServerName
var/ftp/pub
rpm -V
32. You can use the ____ tool after installation to add any package groups that you missed.
setsebool -P htttpd.enable.homedirs 1
pirut
rpm -ivh --replacepkgs xxxx*
yum update kernel
33. To check status of ftp daemon
var/www/html
service vsftpd status
ServerName
chkconfig --level 35 httpd on
34. Virtual Host Configuration: Names the URL for the virtual host.
/etc/vsftpd
rpm -ivh --replacepkgs xxxx*
var/ftp/pub
ServerName
35. 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)
yum update kernel
/etc/vsftpd
/etc/init.d/vsftpd start
36. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
squid -z
iptables -F
-K
37. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
--import file
/etc/vsftpd
LVM
ServerAdmin
38. The rpm ____ option installs the package - if it isn't already installed.
showmount -a
port 21
service vsftpd status
-i
39. rpm option to show me the package files
squid -z
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-l
40. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
/var/ftp/pub
/etc/lvmtab
parted /dev/hda print
41. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
lvdisplay -D /dev/rootvg/tmplv
filesystem type is not ext2 or ext3
showmount -a
chkconfig --list httpd
42. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
DocumentRoot
rpm -V
parted; mklabel k
rpm -ivh --replacepkgs xxxx*
43. 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
dd if=./diskboot.img of=/dev/sdc
chkconfig httpd on
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
44. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
nfs
--import file
wget (http://devmon.dev.schwab.com/index.html)
setsebool -P htttpd.enable.homedirs 1
45. Where is the vsftp pub dir?
yum install vsftpd
DocumentRoot
/var/ftp/pub
setsebool -P htttpd.enable.homedirs 1
46. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
-l
rpm -ivh --replacepkgs xxxx*
lvdisplay -D /dev/rootvg/tmplv
telnetd : ALL EXCEPT 192.168.1.10
47. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/ (root) - /boot and linux swap
/etc/vsftpd
chmod 701
/media/repodata
48. rpm ____ verifies all installed rpms against the rpm database
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
var/ftp/pub
var/www/html
rpm -Va
49. rpm ____ [name of package] to verify the package - once you have manually imported the key
htpasswd -c /etc/httpd/webpass e
rpm -V
-K
ErrorLog
50. Create the basic cache directories in /var/spool/squid with the following command:
parted; check x
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