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. 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*
iptables
service vsftpd status
/etc/lvmtab
2. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
grep '[.*]' server1.repo
fdisk
ssh
chkconfig vsftpd on
3. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
select (followed by the device name such as /dev/hdb)
ServerTokens
e2fsadm
4. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
/etc/lvmtab
rpm -ivh --replacepkgs xxxx*
port 21
5. 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
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
mke2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk
6. 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)
resize2fs
e2fsadm
var/ftp/pub
grep '[.*]' server1.repo
7. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/var/ftp/pub
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
resize2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
8. 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
9. What is the standard directory for file sharing with vsFTP?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
lvextend -L4G /dev/rootvg/tmplv
5
var/ftp/pub
10. 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
/etc/vsftpd
nfs
/etc/vsftpd
/boot
11. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
fdisk
chmod 701
5
NameVirtualHost
12. 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/lvmtab
setup
/boot
13. ____ is used for creating ext2 and ext3 file systems
pirut
setsebool -P htttpd.enable.homedirs 1
mke2fs
rpm -ivh --replacepkgs xxxx*
14. Where is vsftpd.conf?
iptables -F
/ (root) - /boot and linux swap
/etc/init.d/httpd restart
/etc/vsftpd
15. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
setsebool -P htttpd.enable.homedirs 1
iptables -F
rpm -e zip
resize2fs /dev/myvg/homevol
16. The rpm ____ option installs the package - if it isn't already installed.
-i
-K
ServerName
telnetd : ALL EXCEPT 192.168.1.10
17. 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
rpm -Va
-K
wget (http://devmon.dev.schwab.com/index.html)
18. How to disable the firewall on the current system?
chmod 705
DocumentRoot
iptables -F
showmount -a
19. 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.
iptables
/media/repodata
rpm -V
AllowOverride
20. Virtual Host Configuration: Sets a root directory for the virtual host.
Yes
parted; check x
DocumentRoot
fdisk -l
21. Use parted to display disk geometry for /dev/hda and end up in shell
yum install httpd
parted /dev/hda print
5
/etc/lvmtab
22. 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
elinks
yum install vsftpd
chkconfig --level 35 httpd on
telnetd : ALL EXCEPT 192.168.1.10
23. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
grep '[.*]' server1.repo
yum install vsftpd
rpm -V zip
lvdisplay -D /dev/rootvg/tmplv
24. ____ configuration is not available via text mode RHEL installation.
ServerTokens
LVM
/boot
rpm -e zip
25. httpd ___ to update the httpd package - automatically answering yes to all the questions
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum -y update
/etc/init.d/httpd restart
5
26. How to install apache?
/etc/squid/
mke2fs
yum install httpd
/etc/init.d/httpd start
27. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
LVM
iptables -F
chcon -R -t httpd_sys_content_t /home/michael/public_html
28. 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 -Va
ServerTokens
/etc/vsftpd
/ (root) - /boot and linux swap
29. rpm ____ to import the rpm key for integrity checking
wget (http://devmon.dev.schwab.com/index.html)
--import file
nfs
rpm -V
30. 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 ____
mke2fs
elinks
system-config-firewall
chkconfig vsftpd on
31. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
yum install httpd
dd if=./diskboot.img of=/dev/sdc
filesystem type is not ext2 or ext3
pirut
32. The simplest way to install Apache
/var/ftp/pub
LVM
yum install httpd
htpasswd -c /etc/httpd/webpass e
33. Where is the main apache data directory?
yum update kernel
filesystem type is not ext2 or ext3
service vsftpd status
var/www/html
34. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
-K
setsebool -P htttpd.enable.homedirs 1
service vsftpd status
chkconfig vsftpd on
35. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
yum update kernel
yum -y update
fdisk -l
system-config-firewall
36. what port needs to be open to access ftp?
rpm -Va
port 21
service vsftpd status
fdisk -l
37. How to start apache service?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chkconfig --list httpd
/etc/init.d/httpd start
fdisk -l
38. 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
-K
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/httpd/conf/
yum update kernel
39. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
yum install vsftpd
htpasswd -c /etc/httpd/webpass e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
40. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
yum install vsftpd
tune2fs
chmod 701
41. Apache supports security by specifying active ports through the Listen and ____ directives.
rpm -ivh --replacepkgs xxxx*
rpm -Va
NameVirtualHost
/etc/init.d/httpd restart
42. pam ___ will tell me if any files in the pam package have changed since it was first installed
telnetd : ALL EXCEPT 192.168.1.10
rpm -V
NameVirtualHost
e2fsadm
43. What command starts the same menu as the text-mode First Boot process?
setup
/media/repodata
dd if=./diskboot.img of=/dev/sdc
/var/ftp/pub
44. Where to find the main apache config file?
parted; check x
iptables -F
5
/etc/httpd/conf/
45. To list under which run levels the web service will start
NameVirtualHost
iptables
chkconfig --list httpd
rpm -Va
46. After you edit /etc/exports - run service ___ stop...
e2fsadm
nfs
ErrorLog
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)
47. 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:
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
pirut
htpasswd -c /etc/httpd/webpass e
48. 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
iptables -F
ssh
rpm -e zip
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
49. rpm ____ [name of package] to verify the package - once you have manually imported the key
lvextend -L4G /dev/rootvg/tmplv
rpm -Va
-K
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
50. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
yum clean all
/boot
showmount -a
5