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. Where to find the main apache config file?
service vsftpd status
/etc/httpd/conf/
fdisk
CustomLog
2. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
ServerName
yum -y update
/etc/squid/
3. How to start the vsftp service?
chkconfig --level 35 httpd on
/etc/init.d/vsftpd start
rpm -V
chkconfig httpd on
4. rpm ____ verifies the installed zip rpm against the rpm database
/etc/lvmtab
yum install httpd
rpm -V zip
telnetd : ALL EXCEPT 192.168.1.10
5. rpm option to show me the package files
NameVirtualHost
-l
Yes
rpm -V
6. How to install vsftpd?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
var/www/html
yum clean all
yum install vsftpd
7. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
AllowOverride
ErrorLog
-K
rpm -qc
8. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
/etc/squid/
showmount -e
dumpe2fs
9. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/etc/init.d/httpd start
rpm -ivh --replacepkgs xxxx*
showmount -e
yum -y update
10. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
iptables -F
/var/ftp/pub
e2fsadm
11. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chcon -R -t httpd_sys_content_t /home/michael/public_html
wget (http://devmon.dev.schwab.com/index.html)
e2fsadm
yum install httpd
12. The rpm ____ option installs the package - if it isn't already installed.
chkconfig vsftpd on
-i
-i (do not use -U or -F!)
ssh
13. rpm ____ verifies all installed rpms against the rpm database
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 -Va
ssh
/etc/vsftpd
14. Where is the config dir for vsftpd?
ssh
tune2fs
lvextend -L4G /dev/rootvg/tmplv
/etc/vsftpd
15. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
-i (do not use -U or -F!)
filesystem type is not ext2 or ext3
/etc/vsftpd
pirut
16. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
showmount -a
tune2fs
dd if=./diskboot.img of=/dev/sdc
showmount -e
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)
-i
CustomLog
rpm -V
/etc/lvmtab
18. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
wget (http://devmon.dev.schwab.com/index.html)
nfs
yum clean all
rpm -V
19. what port needs to be open to access ftp?
/media/repodata
elinks
setup
port 21
20. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
ErrorLog
5
resize2fs /dev/myvg/homevol
rpm -ivh --replacepkgs xxxx*
21. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
e2fsadm
setup
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
22. rpm ____ to install kernel updates
ServerName
rpm -V
-i (do not use -U or -F!)
var/www/html
23. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
--import file
chkconfig --level 35 httpd on
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -V
24. What is the standard directory for file sharing with vsFTP?
(rpm -q)p file (for rpmfile name)
setup
var/ftp/pub
chkconfig vsftpd on
25. Create a disk label for the partition table called k
parted; mklabel k
squid -z
var/ftp/pub
NameVirtualHost
26. 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 ____
iptables -F
setsebool -P squid_connect_any 1
squid -z
rpm -e zip
27. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
dd if=./diskboot.img of=/dev/sdc
rpm -V
ls -Z
setsebool -P htttpd.enable.homedirs 1
28. Where is vsftpd.conf?
/etc/vsftpd
dumpe2fs
/etc/init.d/httpd start
telnetd : ALL EXCEPT 192.168.1.10
29. ____ is used for creating ext2 and ext3 file systems
-K
mke2fs
ssh
parted /dev/hda print
30. 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
rpm -Va
iptables
parted; mklabel k
rpm -ivh --replacepkgs xxxx*
31. Where is the main apache data directory?
parted /dev/hda print
yum install httpd
var/www/html
LVM
32. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
NameVirtualHost
rpm -e zip
lvdisplay -D /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
33. What parts of rhel6 should be installed to separate volumes?
iptables
ServerAdmin
/ (root) - /boot and linux swap
filesystem type is not ext2 or ext3
34. Virtual Host Configuration: Sets a root directory for the virtual host.
rpm -ivh --replacepkgs xxxx*
iptables -F
DocumentRoot
tune2fs
35. How to start apache service?
rpm -qc
showmount -e
/etc/init.d/httpd start
nfs
36. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
rpm -V
chmod 701
elinks
ssh
37. ____ configuration is not available via text mode RHEL installation.
chmod 705
yum clean all
LVM
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
38. To list under which run levels the web service will start
5
nfs
pirut
chkconfig --list httpd
39. 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
chkconfig --level 35 httpd on
-l
rpm -e zip
40. What command starts the same menu as the text-mode First Boot process?
setup
/etc/httpd/conf/
DocumentRoot
parted /dev/hda print
41. How to start the vsftp service automatically on boot?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig vsftpd on
setup
yum clean all
42. 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
DocumentRoot
/etc/init.d/httpd restart
fdisk -l
ServerTokens
43. To install both mod_ssl and squid packages
lvextend -L4G /dev/rootvg/tmplv
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install mod_ssl squid
rpm -V zip
44. 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:
fdisk -l
htpasswd -c /etc/httpd/webpass e
wget (http://devmon.dev.schwab.com/index.html)
LVM
45. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
showmount -a
First boot process
wget (http://devmon.dev.schwab.com/index.html)
46. Virtual Host Configuration: Names the URL for the virtual host.
yum update kernel
resize2fs /dev/myvg/homevol
ServerName
iptables -F
47. '____ /var/www' will tell you the ACL settings of /var/www
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)
ServerAdmin
lvdisplay -D /dev/rootvg/tmplv
ls -Z
48. 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
49. After you edit /etc/exports - run service ___ stop...
select (followed by the device name such as /dev/hdb)
/media/repodata
yum install httpd
nfs
50. 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)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/ (root) - /boot and linux swap
e2fsadm
parted; check x