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. After you edit /etc/exports - run service ___ stop...
nfs
dd if=./diskboot.img of=/dev/sdc
ServerTokens
wget (http://devmon.dev.schwab.com/index.html)
2. What is the standard directory for file sharing with vsFTP?
LVM
AllowOverride
fdisk
var/ftp/pub
3. How to disable the firewall on the current system?
LVM
wget (http://devmon.dev.schwab.com/index.html)
-i (do not use -U or -F!)
iptables -F
4. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
setup
-i (do not use -U or -F!)
NameVirtualHost
/etc/squid/
5. Virtual Host Configuration: Sets a root directory for the virtual host.
yum install httpd
ls -Z
DocumentRoot
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
6. What service is allowed through the default firewall?
lvextend -L4G /dev/rootvg/tmplv
ssh
rpm -V
/etc/vsftpd
7. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
rpm -V
yum clean all
chmod 701
showmount -e
8. In httpd.conf - '____ None' disables any .htaccess files. Otherwise - .htaccess can allow others to administer your server - starting from the DocumentRoot directory. If .htaccess is in a subdirectory - such as /var/www/html/data/ - the additional di
chmod 701
service vsftpd status
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
AllowOverride
9. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
/media/repodata
lvdisplay -D /dev/rootvg/tmplv
yum install httpd
showmount -a
10. ____ configuration is not available via text mode RHEL installation.
e2fsadm
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
LVM
ErrorLog
11. Where is the config dir for vsftpd?
fdisk -l
parted; mklabel k
ErrorLog
/etc/vsftpd
12. 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
13. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
/media/repodata
/boot
grep '[.*]' server1.repo
14. ____ prints superblock and block group information.
ls -Z
dumpe2fs
rpm -qc
tune2fs
15. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
chkconfig --level 35 httpd on
-i (do not use -U or -F!)
ServerTokens
16. How do you restart the apache web server?
rpm -V zip
mke2fs
/etc/init.d/httpd restart
select (followed by the device name such as /dev/hdb)
17. 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:
setup
ErrorLog
showmount -e
e2fsadm
18. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
var/www/html
lvdisplay -D /dev/rootvg/tmplv
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
19. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
yum install httpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
20. What is the first post installation step?
rpm -V zip
First boot process
yum update kernel
ssh
21. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
showmount -a
DocumentRoot
parted; check x
/media/repodata
22. To install both mod_ssl and squid packages
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install mod_ssl squid
nfs
23. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chcon -R -t httpd_sys_content_t /home/michael/public_html
chkconfig --list httpd
/media/repodata
ServerAdmin
24. 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
(rpm -q)p file (for rpmfile name)
telnetd : ALL EXCEPT 192.168.1.10
-K
yum update kernel
25. 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
ErrorLog
/etc/init.d/vsftpd start
yum install vsftpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
26. 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
resize2fs
elinks
/ (root) - /boot and linux swap
ServerTokens
27. httpd ___ shows me what config files were installed when the httpd package was installed
iptables -F
rpm -qc
fdisk -l
rpm -V
28. Where to find the main apache config file?
(rpm -q)p file (for rpmfile name)
lvextend -L4G /dev/rootvg/tmplv
fdisk -l
/etc/httpd/conf/
29. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
--import file
-i
30. 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 ____
showmount -e
rpm -e zip
5
ErrorLog
31. If in doubt about package names - you can find them in the ...
-i (do not use -U or -F!)
resize2fs
ServerTokens
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)
32. Run the ____ command to find the device associated with the USB key.
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
showmount -a
/etc/squid/
33. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
DocumentRoot
fdisk -l
--import file
rpm -ivh --replacepkgs xxxx*
34. 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
chkconfig --level 35 httpd on
elinks
dd if=./diskboot.img of=/dev/sdc
35. ____ is used to modify file system parameters
rpm -Va
tune2fs
port 21
parted; check x
36. what utility can be used to open port 80?
system-config-firewall
/etc/init.d/httpd restart
elinks
/boot
37. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum install mod_ssl squid
fdisk -l
lvextend -L4G /dev/rootvg/tmplv
yum -y update
38. Where is the vsftp pub dir?
DocumentRoot
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)
showmount -a
/var/ftp/pub
39. rpm option to show me the package files
CustomLog
fdisk -l
-l
Yes
40. 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
filesystem type is not ext2 or ext3
ServerAdmin
parted; check x
41. Perform a simple check of the file system. minor-num is x.
yum install mod_ssl squid
/etc/init.d/httpd start
yum install vsftpd
parted; check x
42. 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
rpm -ivh --replacepkgs xxxx*
lvdisplay -D /dev/rootvg/tmplv
resize2fs
yum update kernel
43. 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.
/etc/vsftpd
port 21
rpm -V
resize2fs
44. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk
CustomLog
wget (http://devmon.dev.schwab.com/index.html)
45. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
/var/ftp/pub
/etc/vsftpd
/etc/httpd/conf/
ErrorLog
46. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
fdisk
ErrorLog
dd if=./diskboot.img of=/dev/sdc
rpm -V
47. Where is vsftpd.conf?
/etc/vsftpd
NameVirtualHost
Yes
-l
48. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
CustomLog
chmod 701
fdisk -l
49. Where is the main apache data directory?
rpm -V
var/www/html
/etc/squid/
system-config-firewall
50. pam ___ will tell me if any files in the pam package have changed since it was first installed
mke2fs
grep '[.*]' server1.repo
lvdisplay -D /dev/rootvg/tmplv
rpm -V