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 show me volume info including vg - size - etc of /dev/rootvg/tmplv
tune2fs
AllowOverride
lvdisplay -D /dev/rootvg/tmplv
-K
2. What parts of rhel6 should be installed to separate volumes?
-K
chkconfig httpd on
/ (root) - /boot and linux swap
CustomLog
3. _____ will change the size of /dev/rootvg/tmplv to 4 gig
rpm -ivh --replacepkgs xxxx*
lvextend -L4G /dev/rootvg/tmplv
DocumentRoot
chkconfig --level 35 httpd on
4. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
e2fsadm
yum install mod_ssl squid
--import file
5. ____ can expand and shrink ext2 and ext3 file systems
NameVirtualHost
chcon -R -t httpd_sys_content_t /home/michael/public_html
Yes
resize2fs
6. rpm ____ to install kernel updates
DocumentRoot
-i (do not use -U or -F!)
lvdisplay -D /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
7. 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:
yum install httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
squid -z
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)
8. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
setup
yum install httpd
rpm -Va
5
9. How to start the vsftp service?
mke2fs
htpasswd -c /etc/httpd/webpass e
/etc/init.d/vsftpd start
NameVirtualHost
10. To check status of ftp daemon
yum install vsftpd
/etc/init.d/vsftpd start
ServerAdmin
service vsftpd status
11. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
rpm -V
/etc/init.d/httpd start
iptables -F
12. Create a disk label for the partition table called k
parted; mklabel k
rpm -V
setup
ErrorLog
13. 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:
nfs
squid -z
LVM
htpasswd -c /etc/httpd/webpass e
14. Create the basic cache directories in /var/spool/squid with the following command:
var/ftp/pub
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)
nfs
squid -z
15. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
dd if=./diskboot.img of=/dev/sdc
port 21
fdisk -l
16. 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.
/var/ftp/pub
fdisk -l
rpm -V
-i (do not use -U or -F!)
17. How to disable the firewall on the current system?
iptables -F
/etc/httpd/conf/
/boot
/var/ftp/pub
18. 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:
showmount -e
NameVirtualHost
--import file
ls -Z
19. rpm ____ verifies all installed rpms against the rpm database
setsebool -P squid_connect_any 1
var/ftp/pub
rpm -V
rpm -Va
20. Where is the main apache data directory?
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)
/media/repodata
wget (http://devmon.dev.schwab.com/index.html)
var/www/html
21. rpm ____ [name of package] to verify the package - once you have manually imported the key
chmod 701
/etc/vsftpd
yum install httpd
-K
22. httpd ___ shows me what config files were installed when the httpd package was installed
parted; check x
rpm -qc
iptables -F
chkconfig --level 35 httpd on
23. Where is the config dir for vsftpd?
/etc/vsftpd
resize2fs
showmount -a
ssh
24. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
var/www/html
-i (do not use -U or -F!)
chmod 705
var/ftp/pub
25. Virtual Host Configuration: Sets a root directory for the virtual host.
select (followed by the device name such as /dev/hdb)
(rpm -q)p file (for rpmfile name)
DocumentRoot
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
26. ____ configuration is not available via text mode RHEL installation.
-i
wget (http://devmon.dev.schwab.com/index.html)
LVM
/etc/init.d/httpd restart
27. Perform a simple check of the file system. minor-num is x.
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk -l
parted; check x
/media/repodata
28. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
chmod 705
yum install httpd
yum clean all
chkconfig --level 35 httpd on
29. To install both mod_ssl and squid packages
chmod 701
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install mod_ssl squid
rpm -Va
30. You can use the ____ tool after installation to add any package groups that you missed.
ls -Z
pirut
/ (root) - /boot and linux swap
rpm -Va
31. ____ is used to modify file system parameters
tune2fs
parted; check x
LVM
/etc/vsftpd
32. 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
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
port 21
yum install vsftpd
33. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
/etc/init.d/httpd start
--import file
fdisk
5
34. What is the first post installation step?
LVM
First boot process
fdisk -l
yum clean all
35. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
fdisk -l
dumpe2fs
wget (http://devmon.dev.schwab.com/index.html)
mke2fs
36. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
-K
rpm -qc
chmod 701
fdisk
37. 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.
e2fsadm
yum update kernel
iptables -F
fdisk -l
38. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
Yes
lvdisplay -D /dev/rootvg/tmplv
DocumentRoot
39. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
wget (http://devmon.dev.schwab.com/index.html)
setup
/etc/vsftpd
40. Where to find the main apache config file?
lvdisplay -D /dev/rootvg/tmplv
DocumentRoot
/etc/httpd/conf/
chcon -R -t httpd_sys_content_t /home/michael/public_html
41. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
iptables
yum install httpd
Yes
42. 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
fdisk
htpasswd -c /etc/httpd/webpass e
elinks
43. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
iptables -F
select (followed by the device name such as /dev/hdb)
iptables -F
htpasswd -c /etc/httpd/webpass e
44. How to install vsftpd?
dd if=./diskboot.img of=/dev/sdc
ErrorLog
setup
yum install vsftpd
45. What is the standard directory for file sharing with vsFTP?
lvdisplay -D /dev/rootvg/tmplv
var/ftp/pub
(rpm -q)p file (for rpmfile name)
chkconfig --list httpd
46. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
lvextend -L4G /dev/rootvg/tmplv
rpm -Va
LVM
47. 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)
rpm -qc
showmount -a
pirut
CustomLog
48. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
dumpe2fs
/boot
chkconfig --list httpd
49. Run the ____ command to find the device associated with the USB key.
tune2fs
dd if=./diskboot.img of=/dev/sdc
rpm -V
fdisk -l
50. What service is allowed through the default firewall?
chkconfig httpd on
/etc/httpd/conf/
ssh
fdisk -l