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 parted to display disk geometry for /dev/hda and end up in shell
-i
parted /dev/hda print
service vsftpd status
fdisk -l
2. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
/etc/httpd/conf/
ServerAdmin
yum clean all
DocumentRoot
3. 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)
ServerTokens
e2fsadm
rpm -qc
resize2fs /dev/myvg/homevol
4. What command starts the same menu as the text-mode First Boot process?
dumpe2fs
htpasswd -c /etc/httpd/webpass e
/etc/init.d/httpd restart
setup
5. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
nfs
chkconfig --level 35 httpd on
/etc/squid/
pirut
6. _____ will change the size of /dev/rootvg/tmplv to 4 gig
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
lvextend -L4G /dev/rootvg/tmplv
grep '[.*]' server1.repo
7. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
showmount -e
yum clean all
First boot process
8. Where is vsftpd.conf?
rpm -V zip
yum -y update
showmount -a
/etc/vsftpd
9. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -V
ServerAdmin
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ErrorLog
10. rpm option to show me the package files
var/ftp/pub
yum install httpd
First boot process
-l
11. Perform a simple check of the file system. minor-num is x.
ErrorLog
parted; check x
chkconfig --level 35 httpd on
-K
12. 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
yum update kernel
/etc/vsftpd
nfs
iptables
13. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
rpm -ivh --replacepkgs xxxx*
nfs
filesystem type is not ext2 or ext3
DocumentRoot
14. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
resize2fs
chkconfig --list httpd
/media/repodata
15. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
resize2fs /dev/myvg/homevol
fdisk
chkconfig httpd on
chkconfig vsftpd on
16. 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
rpm -V
setsebool -P squid_connect_any 1
yum update kernel
ErrorLog
17. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/etc/init.d/httpd restart
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted; check x
LVM
18. rpm ____ verifies the installed zip rpm against the rpm database
LVM
resize2fs /dev/myvg/homevol
rpm -V zip
iptables -F
19. After you edit /etc/exports - run service ___ stop...
nfs
/boot
/ (root) - /boot and linux swap
rpm -ivh --replacepkgs xxxx*
20. To check status of ftp daemon
pirut
service vsftpd status
tune2fs
parted /dev/hda print
21. 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
22. Where is the config dir for vsftpd?
/etc/vsftpd
yum -y update
wget (http://devmon.dev.schwab.com/index.html)
var/www/html
23. 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
filesystem type is not ext2 or ext3
iptables
fdisk -l
mke2fs
24. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
iptables
5
dd if=./diskboot.img of=/dev/sdc
/etc/lvmtab
25. 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 ____
Yes
/etc/vsftpd
/etc/init.d/httpd start
elinks
26. You can use the ____ tool after installation to add any package groups that you missed.
pirut
rpm -V
NameVirtualHost
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)
27. Apache supports security by specifying active ports through the Listen and ____ directives.
var/ftp/pub
setsebool -P squid_connect_any 1
system-config-firewall
NameVirtualHost
28. The simplest way to install Apache
port 21
yum install httpd
ssh
chkconfig httpd on
29. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
ErrorLog
showmount -a
CustomLog
ServerTokens
30. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
rpm -V zip
resize2fs /dev/myvg/homevol
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk -l
31. To install both mod_ssl and squid packages
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install httpd
yum install mod_ssl squid
CustomLog
32. How to install vsftpd?
/etc/squid/
yum install vsftpd
rpm -e zip
setup
33. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
/etc/vsftpd
dumpe2fs
--import file
NameVirtualHost
34. what port needs to be open to access ftp?
squid -z
yum install httpd
filesystem type is not ext2 or ext3
port 21
35. ____ can expand and shrink ext2 and ext3 file systems
/media/repodata
chcon -R -t httpd_sys_content_t /home/michael/public_html
resize2fs
parted; check x
36. What parts of rhel6 should be installed to separate volumes?
rpm -qc
/ (root) - /boot and linux swap
elinks
/etc/init.d/vsftpd start
37. ____ is used for creating ext2 and ext3 file systems
mke2fs
nfs
showmount -e
htpasswd -c /etc/httpd/webpass e
38. Run the ____ command to find the device associated with the USB key.
iptables
service vsftpd status
fdisk -l
rpm -e zip
39. The rpm ____ option installs the package - if it isn't already installed.
-i
AllowOverride
chmod 701
yum install vsftpd
40. Where to find the main apache config file?
ErrorLog
/etc/httpd/conf/
rpm -V
chcon -R -t httpd_sys_content_t /home/michael/public_html
41. Where is the main apache data directory?
var/www/html
rpm -V
lvextend -L4G /dev/rootvg/tmplv
port 21
42. httpd ___ to update the httpd package - automatically answering yes to all the questions
dd if=./diskboot.img of=/dev/sdc
setsebool -P squid_connect_any 1
rpm -ivh --replacepkgs xxxx*
yum -y update
43. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/init.d/vsftpd start
nfs
44. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ServerAdmin
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
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)
45. How do you restart the apache web server?
/etc/init.d/httpd restart
/media/repodata
AllowOverride
yum install vsftpd
46. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
select (followed by the device name such as /dev/hdb)
/etc/httpd/conf/
resize2fs
yum -y update
47. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
chmod 701
var/www/html
NameVirtualHost
48. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
chkconfig --list httpd
/etc/init.d/httpd restart
LVM
49. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
-l
/etc/init.d/httpd start
e2fsadm
setsebool -P htttpd.enable.homedirs 1
50. Where is the vsftp pub dir?
/var/ftp/pub
iptables -F
Yes
fdisk -l