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. ____ prints superblock and block group information.
dumpe2fs
elinks
parted; mklabel k
ServerTokens
2. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
wget (http://devmon.dev.schwab.com/index.html)
ls -Z
chmod 705
rpm -V
3. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
First boot process
lvdisplay -D /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
NameVirtualHost
4. Virtual Host Configuration: Names the URL for the virtual host.
NameVirtualHost
dd if=./diskboot.img of=/dev/sdc
yum install httpd
ServerName
5. The main Squid configuration file is ____/squid.conf
setup
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
select (followed by the device name such as /dev/hdb)
/etc/squid/
6. httpd ___ to update the httpd package - automatically answering yes to all the questions
tune2fs
-K
yum -y update
grep '[.*]' server1.repo
7. 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 ____
elinks
/ (root) - /boot and linux swap
rpm -V zip
fdisk
8. '____ /var/www' will tell you the ACL settings of /var/www
yum install vsftpd
iptables
-i (do not use -U or -F!)
ls -Z
9. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
iptables -F
parted /dev/hda print
pirut
10. Where is the vsftp pub dir?
/etc/init.d/httpd start
ServerAdmin
/var/ftp/pub
ServerTokens
11. Use parted to display disk geometry for /dev/hda and end up in shell
resize2fs
parted /dev/hda print
rpm -V
(rpm -q)p file (for rpmfile name)
12. 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.
rpm -e zip
iptables -F
ServerAdmin
Yes
13. What is the first post installation step?
LVM
/etc/vsftpd
chkconfig httpd on
First boot process
14. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
iptables -F
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ServerAdmin
squid -z
15. How to install apache?
yum install httpd
rpm -V zip
CustomLog
iptables -F
16. rpm ____ to install kernel updates
-i (do not use -U or -F!)
nfs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
Yes
17. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
/etc/lvmtab
fdisk
/etc/vsftpd
ServerTokens
18. What service is allowed through the default firewall?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ssh
DocumentRoot
ls -Z
19. Where is the main apache data directory?
DocumentRoot
var/www/html
/var/ftp/pub
chmod 701
20. How to start apache service?
parted; mklabel k
/etc/init.d/httpd start
wget (http://devmon.dev.schwab.com/index.html)
iptables -F
21. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
/media/repodata
/etc/vsftpd
var/www/html
rpm -ivh --replacepkgs xxxx*
22. Where is the config dir for vsftpd?
rpm -ivh --replacepkgs xxxx*
system-config-firewall
/etc/vsftpd
dd if=./diskboot.img of=/dev/sdc
23. How to install vsftpd?
chkconfig vsftpd on
yum install vsftpd
nfs
--import file
24. ____ is used for creating ext2 and ext3 file systems
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)
grep '[.*]' server1.repo
mke2fs
25. 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:
/etc/init.d/httpd restart
showmount -e
parted; mklabel k
parted; check x
26. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
NameVirtualHost
-i (do not use -U or -F!)
system-config-firewall
27. 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)
CustomLog
-i (do not use -U or -F!)
lvdisplay -D /dev/rootvg/tmplv
--import file
28. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
chmod 705
chmod 701
ErrorLog
29. 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
LVM
select (followed by the device name such as /dev/hdb)
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -V
30. 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)
setup
htpasswd -c /etc/httpd/webpass e
-i
31. 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
32. rpm ____ verifies all installed rpms against the rpm database
/etc/vsftpd
rpm -Va
chkconfig --level 35 httpd on
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
33. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
service vsftpd status
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chmod 701
resize2fs
34. 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
ServerTokens
showmount -e
yum install vsftpd
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
35. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
First boot process
resize2fs
(rpm -q)p file (for rpmfile name)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
36. Run the ____ command to find the device associated with the USB key.
nfs
showmount -a
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
37. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
lvdisplay -D /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-i
38. Create a disk label for the partition table called k
-i
showmount -a
/ (root) - /boot and linux swap
parted; mklabel k
39. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
port 21
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
wget (http://devmon.dev.schwab.com/index.html)
40. What command starts the same menu as the text-mode First Boot process?
lvdisplay -D /dev/rootvg/tmplv
setup
5
rpm -e zip
41. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
ssh
chkconfig vsftpd on
yum install httpd
42. If in doubt about package names - you can find them in the ...
parted; check x
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
rpm -Va
43. 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
ssh
/etc/init.d/httpd restart
setup
yum update kernel
44. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chkconfig httpd on
setsebool -P htttpd.enable.homedirs 1
yum install httpd
resize2fs
45. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
chkconfig vsftpd on
fdisk
dd if=./diskboot.img of=/dev/sdc
e2fsadm
46. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
(rpm -q)p file (for rpmfile name)
filesystem type is not ext2 or ext3
yum clean all
ErrorLog
47. How to start the vsftp service automatically on boot?
iptables -F
rpm -Va
e2fsadm
chkconfig vsftpd on
48. How to make sure apache starts automatically on next reboot?
ServerName
chkconfig httpd on
/boot
/etc/init.d/vsftpd start
49. Where is vsftpd.conf?
/etc/vsftpd
iptables -F
ErrorLog
chkconfig --level 35 httpd on
50. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
/etc/lvmtab
rpm -e zip
telnetd : ALL EXCEPT 192.168.1.10
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