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. To install both mod_ssl and squid packages
chkconfig vsftpd on
yum install mod_ssl squid
rpm -ivh --replacepkgs xxxx*
chkconfig httpd on
2. Where is the main apache data directory?
/etc/lvmtab
resize2fs
/etc/httpd/conf/
var/www/html
3. What parts of rhel6 should be installed to separate volumes?
rpm -V
LVM
/ (root) - /boot and linux swap
chkconfig --list httpd
4. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
LVM
/etc/init.d/vsftpd start
chmod 701
rpm -Va
5. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
fdisk -l
resize2fs /dev/myvg/homevol
elinks
rpm -ivh --replacepkgs xxxx*
6. Virtual Host Configuration: Sets a root directory for the virtual host.
wget (http://devmon.dev.schwab.com/index.html)
DocumentRoot
iptables
rpm -V
7. 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)
fdisk
ssh
e2fsadm
service vsftpd status
8. To list under which run levels the web service will start
yum update kernel
chkconfig --list httpd
tune2fs
CustomLog
9. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
var/www/html
parted /dev/hda print
dd if=./diskboot.img of=/dev/sdc
10. rpm ____ to import the rpm key for integrity checking
dumpe2fs
rpm -V
NameVirtualHost
--import file
11. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
setsebool -P htttpd.enable.homedirs 1
ServerName
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum clean all
12. rpm ____ to install kernel updates
5
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-i (do not use -U or -F!)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
13. What service is allowed through the default firewall?
/etc/squid/
ssh
rpm -V zip
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
14. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
-i
-K
dd if=./diskboot.img of=/dev/sdc
filesystem type is not ext2 or ext3
15. Run the ____ command to find the device associated with the USB key.
rpm -V
chkconfig --level 35 httpd on
fdisk -l
/var/ftp/pub
16. How to start the vsftp service?
iptables -F
resize2fs
yum install vsftpd
/etc/init.d/vsftpd start
17. How to start the vsftp service automatically on boot?
chkconfig --list httpd
showmount -e
--import file
chkconfig vsftpd on
18. 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
19. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
chkconfig vsftpd on
htpasswd -c /etc/httpd/webpass e
yum install vsftpd
20. 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
/ (root) - /boot and linux swap
yum update kernel
NameVirtualHost
-i (do not use -U or -F!)
21. 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 -e zip
chcon -R -t httpd_sys_content_t /home/michael/public_html
chkconfig httpd on
-K
22. httpd ___ shows me what config files were installed when the httpd package was installed
nfs
parted; mklabel k
rpm -qc
setsebool -P htttpd.enable.homedirs 1
23. 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
/etc/init.d/vsftpd start
yum install httpd
/boot
telnetd : ALL EXCEPT 192.168.1.10
24. How to install apache?
filesystem type is not ext2 or ext3
pirut
yum install httpd
showmount -e
25. Perform a simple check of the file system. minor-num is x.
rpm -V
fdisk
parted; check x
resize2fs
26. rpm ____ [name of package] to verify the package - once you have manually imported the key
chkconfig httpd on
-K
iptables -F
iptables -F
27. what port needs to be open to access ftp?
var/ftp/pub
/etc/init.d/httpd start
port 21
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
28. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
setsebool -P squid_connect_any 1
htpasswd -c /etc/httpd/webpass e
yum -y update
29. _____ will change the size of /dev/rootvg/tmplv to 4 gig
setup
/media/repodata
htpasswd -c /etc/httpd/webpass e
lvextend -L4G /dev/rootvg/tmplv
30. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
/etc/vsftpd
rpm -e zip
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
31. How to start apache service?
yum install httpd
fdisk
/etc/init.d/httpd start
rpm -e zip
32. 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
/etc/squid/
/etc/init.d/vsftpd start
LVM
33. '____ /var/www' will tell you the ACL settings of /var/www
/etc/init.d/httpd restart
rpm -e zip
ls -Z
fdisk -l
34. 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:
mke2fs
/etc/vsftpd
-K
showmount -e
35. Are SELinux and iptables-based firewalls are enabled by default?
/etc/squid/
resize2fs
/media/repodata
Yes
36. ____ can expand and shrink ext2 and ext3 file systems
select (followed by the device name such as /dev/hdb)
-i (do not use -U or -F!)
(rpm -q)p file (for rpmfile name)
resize2fs
37. Where is the vsftp pub dir?
ServerName
/var/ftp/pub
NameVirtualHost
rpm -V
38. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
lvdisplay -D /dev/rootvg/tmplv
/etc/squid/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
39. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/etc/init.d/httpd restart
ssh
wget (http://devmon.dev.schwab.com/index.html)
e2fsadm
40. How to make sure apache starts automatically on next reboot?
grep '[.*]' server1.repo
wget (http://devmon.dev.schwab.com/index.html)
chkconfig httpd on
-K
41. 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 ____
yum install vsftpd
elinks
dumpe2fs
First boot process
42. 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
/etc/init.d/httpd start
chcon -R -t httpd_sys_content_t /home/michael/public_html
NameVirtualHost
--import file
43. Where is the config dir for vsftpd?
/etc/vsftpd
rpm -V zip
--import file
/etc/lvmtab
44. 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.
chkconfig --level 35 httpd on
var/www/html
iptables -F
nfs
45. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
fdisk
ServerAdmin
chkconfig --level 35 httpd on
port 21
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
chkconfig --level 35 httpd on
e2fsadm
iptables
filesystem type is not ext2 or ext3
47. Apache supports security by specifying active ports through the Listen and ____ directives.
pirut
var/www/html
NameVirtualHost
lvdisplay -D /dev/rootvg/tmplv
48. Where is vsftpd.conf?
/etc/vsftpd
ErrorLog
showmount -a
e2fsadm
49. 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.
rpm -V
yum clean all
(rpm -q)p file (for rpmfile name)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
50. Virtual Host Configuration: Names the URL for the virtual host.
htpasswd -c /etc/httpd/webpass e
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)
ServerName
/etc/vsftpd
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests