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. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
--import file
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm -e zip
Yes
2. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
grep '[.*]' server1.repo
-K
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum clean all
3. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
5
/media/repodata
fdisk
-i (do not use -U or -F!)
4. _____ will change the size of /dev/rootvg/tmplv to 4 gig
setsebool -P squid_connect_any 1
lvextend -L4G /dev/rootvg/tmplv
ls -Z
rpm -V zip
5. 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
e2fsadm
setsebool -P squid_connect_any 1
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerTokens
6. Virtual Host Configuration: Sets a root directory for the virtual host.
var/ftp/pub
DocumentRoot
/ (root) - /boot and linux swap
ServerName
7. 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/squid/
showmount -a
showmount -e
rpm -V
8. How to start the vsftp service?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/vsftpd start
yum update kernel
NameVirtualHost
9. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -ivh --replacepkgs xxxx*
rpm -qc
Yes
yum install vsftpd
10. How to make sure apache starts automatically on next reboot?
fdisk
/etc/httpd/conf/
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chkconfig httpd on
11. The main Squid configuration file is ____/squid.conf
parted; check x
--import file
/etc/lvmtab
/etc/squid/
12. What is the first post installation step?
/var/ftp/pub
First boot process
fdisk -l
ssh
13. 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)
/etc/squid/
grep '[.*]' server1.repo
First boot process
e2fsadm
14. what utility can be used to open port 80?
rpm -V
system-config-firewall
yum install httpd
elinks
15. To list under which run levels the web service will start
iptables -F
tune2fs
chkconfig --list httpd
telnetd : ALL EXCEPT 192.168.1.10
16. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
(rpm -q)p file (for rpmfile name)
DocumentRoot
grep '[.*]' server1.repo
chmod 701
17. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
showmount -a
ServerName
setsebool -P htttpd.enable.homedirs 1
filesystem type is not ext2 or ext3
18. 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
AllowOverride
5
ssh
rpm -Va
19. How to start the vsftp service automatically on boot?
setsebool -P squid_connect_any 1
chkconfig vsftpd on
LVM
port 21
20. ____ configuration is not available via text mode RHEL installation.
AllowOverride
service vsftpd status
/etc/init.d/httpd restart
LVM
21. Where to find the main apache config file?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -qc
/etc/httpd/conf/
service vsftpd status
22. 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
dd if=./diskboot.img of=/dev/sdc
-K
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V zip
23. What command starts the same menu as the text-mode First Boot process?
lvextend -L4G /dev/rootvg/tmplv
Yes
setup
/ (root) - /boot and linux swap
24. ____ prints superblock and block group information.
telnetd : ALL EXCEPT 192.168.1.10
dumpe2fs
--import file
rpm -qc
25. what port needs to be open to access ftp?
yum clean all
ls -Z
/etc/init.d/httpd start
port 21
26. 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 ____
LVM
elinks
rpm -V zip
chkconfig --list httpd
27. rpm ____ to import the rpm key for integrity checking
setup
(rpm -q)p file (for rpmfile name)
--import file
/boot
28. How to install apache?
yum install httpd
/ (root) - /boot and linux swap
var/ftp/pub
LVM
29. 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
telnetd : ALL EXCEPT 192.168.1.10
/etc/init.d/httpd start
elinks
chkconfig vsftpd on
30. rpm ____ verifies the installed zip rpm against the rpm database
NameVirtualHost
lvextend -L4G /dev/rootvg/tmplv
select (followed by the device name such as /dev/hdb)
rpm -V zip
31. Where is the main apache data directory?
-l
DocumentRoot
parted; mklabel k
var/www/html
32. Where is the vsftp pub dir?
/var/ftp/pub
DocumentRoot
tune2fs
rpm -ivh --replacepkgs xxxx*
33. 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
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
/var/ftp/pub
nfs
34. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V
-i
fdisk -l
35. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
-i (do not use -U or -F!)
36. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
port 21
/etc/squid/
showmount -a
yum clean all
37. Create a disk label for the partition table called k
resize2fs /dev/myvg/homevol
mke2fs
parted; mklabel k
tune2fs
38. If you configure other directories for Web services - you'll need to change their ACL settings. For example - if you create and then use the /www directory - run the following commands:
tune2fs
/etc/httpd/conf/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/init.d/httpd start
39. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/etc/lvmtab
fdisk -l
/media/repodata
setup
40. After you edit /etc/exports - run service ___ stop...
Yes
chkconfig vsftpd on
setsebool -P htttpd.enable.homedirs 1
nfs
41. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ls -Z
yum install vsftpd
42. How to disable the firewall on the current system?
mke2fs
ls -Z
tune2fs
iptables -F
43. Apache supports security by specifying active ports through the Listen and ____ directives.
-i (do not use -U or -F!)
tune2fs
5
NameVirtualHost
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:
htpasswd -c /etc/httpd/webpass e
dd if=./diskboot.img of=/dev/sdc
squid -z
wget (http://devmon.dev.schwab.com/index.html)
45. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
system-config-firewall
/etc/lvmtab
5
46. Where is the config dir for vsftpd?
chmod 705
/etc/vsftpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/boot
47. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
/boot
chmod 705
First boot process
/etc/init.d/httpd restart
48. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
ls -Z
var/ftp/pub
First boot process
(rpm -q)p file (for rpmfile name)
49. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk -l
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
50. 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
Sorry!:) No result found.
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