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. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
rpm -qc
fdisk -l
setsebool -P htttpd.enable.homedirs 1
fdisk
2. 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
3. If in doubt about package names - you can find them in the ...
iptables -F
grep '[.*]' server1.repo
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 -qc
4. How to start the vsftp service automatically on boot?
chmod 701
chkconfig vsftpd on
lvdisplay -D /dev/rootvg/tmplv
wget (http://devmon.dev.schwab.com/index.html)
5. 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 ____
/etc/vsftpd
setsebool -P htttpd.enable.homedirs 1
elinks
/etc/httpd/conf/
6. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chkconfig --level 35 httpd on
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
ServerAdmin
7. Create a disk label for the partition table called k
grep '[.*]' server1.repo
parted; mklabel k
chkconfig vsftpd on
nfs
8. What service is allowed through the default firewall?
ErrorLog
ssh
chcon -R -t httpd_sys_content_t /home/michael/public_html
-i
9. Where is the vsftp pub dir?
/var/ftp/pub
select (followed by the device name such as /dev/hdb)
resize2fs
port 21
10. 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
/boot
setup
telnetd : ALL EXCEPT 192.168.1.10
htpasswd -c /etc/httpd/webpass e
11. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
parted; mklabel k
CustomLog
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/vsftpd
12. After you edit /etc/exports - run service ___ stop...
nfs
chkconfig --list httpd
AllowOverride
/etc/lvmtab
13. _____ will change the size of /dev/rootvg/tmplv to 4 gig
fdisk
/etc/init.d/vsftpd start
lvextend -L4G /dev/rootvg/tmplv
pirut
14. Where to find the main apache config file?
htpasswd -c /etc/httpd/webpass e
ServerName
/etc/lvmtab
/etc/httpd/conf/
15. ____ configuration is not available via text mode RHEL installation.
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
LVM
DocumentRoot
/ (root) - /boot and linux swap
16. You can use the ____ tool after installation to add any package groups that you missed.
First boot process
pirut
yum install mod_ssl squid
yum clean all
17. 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
/etc/init.d/httpd start
/var/ftp/pub
iptables -F
18. 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
resize2fs /dev/myvg/homevol
chcon -R -t httpd_sys_content_t /home/michael/public_html
e2fsadm
iptables
19. How to make sure apache starts automatically on next reboot?
resize2fs
chkconfig httpd on
-l
iptables -F
20. Are SELinux and iptables-based firewalls are enabled by default?
Yes
resize2fs
ErrorLog
iptables -F
21. rpm ____ to install kernel updates
yum install httpd
/etc/init.d/httpd restart
telnetd : ALL EXCEPT 192.168.1.10
-i (do not use -U or -F!)
22. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
fdisk -l
rpm -e zip
(rpm -q)p file (for rpmfile name)
chmod 705
23. ____ is used for creating ext2 and ext3 file systems
fdisk -l
ServerName
mke2fs
rpm -qc
24. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
grep '[.*]' server1.repo
showmount -a
ErrorLog
--import file
25. 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
parted; mklabel k
showmount -a
-i
26. 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)
rpm -e zip
chmod 705
e2fsadm
ServerAdmin
27. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chkconfig vsftpd on
yum update kernel
fdisk -l
/etc/squid/
28. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
chkconfig httpd on
resize2fs
(rpm -q)p file (for rpmfile name)
resize2fs /dev/myvg/homevol
29. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
ServerTokens
/etc/init.d/httpd restart
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
30. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
nfs
rpm -ivh --replacepkgs xxxx*
31. What is the first post installation step?
fdisk -l
rpm -V zip
chkconfig vsftpd on
First boot process
32. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
/media/repodata
chmod 705
chmod 701
yum update kernel
33. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
-K
/etc/lvmtab
dumpe2fs
lvdisplay -D /dev/rootvg/tmplv
34. what port needs to be open to access ftp?
setsebool -P htttpd.enable.homedirs 1
port 21
ServerAdmin
parted; mklabel k
35. rpm ____ verifies all installed rpms against the rpm database
-i (do not use -U or -F!)
rpm -Va
filesystem type is not ext2 or ext3
ls -Z
36. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
elinks
rpm -ivh --replacepkgs xxxx*
setsebool -P htttpd.enable.homedirs 1
dumpe2fs
37. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
rpm -V zip
--import file
AllowOverride
chmod 705
38. What command starts the same menu as the text-mode First Boot process?
ServerAdmin
/etc/vsftpd
setup
chkconfig --level 35 httpd on
39. 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:
chkconfig vsftpd on
system-config-firewall
htpasswd -c /etc/httpd/webpass e
yum update kernel
40. Apache supports security by specifying active ports through the Listen and ____ directives.
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/vsftpd
setsebool -P squid_connect_any 1
41. How to install vsftpd?
ls -Z
wget (http://devmon.dev.schwab.com/index.html)
resize2fs /dev/myvg/homevol
yum install vsftpd
42. I just ran rpm -ivh zip-2.3-8.i386.rpm .. whooops - now I don't want this on my system so to get it off via rpm I type ____
rpm -V zip
/etc/squid/
rpm -e zip
/etc/init.d/httpd restart
43. Perform a simple check of the file system. minor-num is x.
parted; check x
/boot
service vsftpd status
chmod 705
44. To install both mod_ssl and squid packages
yum install mod_ssl squid
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/vsftpd
chkconfig httpd on
45. Where is vsftpd.conf?
/etc/vsftpd
NameVirtualHost
parted; check x
var/www/html
46. 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
rpm -qc
dd if=./diskboot.img of=/dev/sdc
/etc/httpd/conf/
47. ____ is used to modify file system parameters
tune2fs
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
resize2fs
48. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum install httpd
elinks
/etc/squid/
yum -y update
49. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/etc/squid/
iptables -F
dd if=./diskboot.img of=/dev/sdc
AllowOverride
50. Use parted to display disk geometry for /dev/hda and end up in shell
rpm -e zip
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted /dev/hda print
setup