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. What service is allowed through the default firewall?
LVM
chmod 701
setup
ssh
2. How to make sure apache starts automatically on next reboot?
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
squid -z
chkconfig httpd on
3. Are SELinux and iptables-based firewalls are enabled by default?
ssh
chkconfig --list httpd
Yes
/var/ftp/pub
4. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
yum install httpd
parted; check x
(rpm -q)p file (for rpmfile name)
5. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
telnetd : ALL EXCEPT 192.168.1.10
yum install mod_ssl squid
6. what port needs to be open to access ftp?
/ (root) - /boot and linux swap
/etc/vsftpd
var/ftp/pub
port 21
7. 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)
telnetd : ALL EXCEPT 192.168.1.10
/etc/squid/
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
CustomLog
8. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
/var/ftp/pub
ErrorLog
select (followed by the device name such as /dev/hdb)
ServerAdmin
9. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
resize2fs /dev/myvg/homevol
filesystem type is not ext2 or ext3
e2fsadm
ServerTokens
10. ____ prints superblock and block group information.
yum install vsftpd
parted; check x
rpm -e zip
dumpe2fs
11. If in doubt about package names - you can find them in the ...
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)
setsebool -P htttpd.enable.homedirs 1
setsebool -P squid_connect_any 1
lvextend -L4G /dev/rootvg/tmplv
12. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
filesystem type is not ext2 or ext3
resize2fs /dev/myvg/homevol
fdisk -l
13. ____ is used to modify file system parameters
rpm -e zip
tune2fs
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
14. Create a disk label for the partition table called k
rpm -V
NameVirtualHost
parted; mklabel k
ServerAdmin
15. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
ServerAdmin
(rpm -q)p file (for rpmfile name)
yum install httpd
/etc/squid/
16. Run the ____ command to find the device associated with the USB key.
fdisk -l
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
service vsftpd status
17. Where is vsftpd.conf?
dumpe2fs
First boot process
/etc/vsftpd
chkconfig --list httpd
18. 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.
pirut
iptables -F
5
filesystem type is not ext2 or ext3
19. What is the standard directory for file sharing with vsFTP?
/etc/squid/
/etc/init.d/httpd start
var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
20. Create the basic cache directories in /var/spool/squid with the following command:
parted; check x
/etc/vsftpd
squid -z
yum install httpd
21. rpm ____ verifies the installed zip rpm against the rpm database
chkconfig vsftpd on
First boot process
tune2fs
rpm -V zip
22. 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)
e2fsadm
setsebool -P squid_connect_any 1
ssh
showmount -e
23. The simplest way to install Apache
-l
yum install httpd
rpm -qc
system-config-firewall
24. 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
nfs
iptables -F
iptables
var/ftp/pub
25. The main Squid configuration file is ____/squid.conf
/etc/squid/
rpm -e zip
select (followed by the device name such as /dev/hdb)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
26. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -V zip
-K
rpm -ivh --replacepkgs xxxx*
mke2fs
27. Virtual Host Configuration: Names the URL for the virtual host.
telnetd : ALL EXCEPT 192.168.1.10
rpm -V zip
ServerName
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)
28. 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
var/ftp/pub
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)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 705
29. 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:
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
dumpe2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
30. 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
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
lvdisplay -D /dev/rootvg/tmplv
chkconfig httpd on
31. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
/etc/vsftpd
lvdisplay -D /dev/rootvg/tmplv
select (followed by the device name such as /dev/hdb)
32. '____ /var/www' will tell you the ACL settings of /var/www
rpm -V
yum install httpd
ls -Z
showmount -e
33. 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
iptables -F
yum clean all
-i
34. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
dumpe2fs
wget (http://devmon.dev.schwab.com/index.html)
First boot process
fdisk -l
35. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ServerName
ErrorLog
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install httpd
36. rpm ____ [name of package] to verify the package - once you have manually imported the key
ServerName
dd if=./diskboot.img of=/dev/sdc
-K
yum install httpd
37. _____ will change the size of /dev/rootvg/tmplv to 4 gig
filesystem type is not ext2 or ext3
lvextend -L4G /dev/rootvg/tmplv
chkconfig --level 35 httpd on
iptables -F
38. Where is the config dir for vsftpd?
/etc/vsftpd
fdisk -l
yum update kernel
parted; check x
39. 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.
fdisk -l
rpm -V
-i (do not use -U or -F!)
port 21
40. After you edit /etc/exports - run service ___ stop...
nfs
chkconfig --level 35 httpd on
select (followed by the device name such as /dev/hdb)
yum install httpd
41. Tthe file that might contain: oldvg - rootvg - etc.
yum install vsftpd
/etc/lvmtab
chkconfig vsftpd on
/ (root) - /boot and linux swap
42. what utility can be used to open port 80?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
system-config-firewall
dd if=./diskboot.img of=/dev/sdc
parted /dev/hda print
43. httpd ___ shows me what config files were installed when the httpd package was installed
telnetd : ALL EXCEPT 192.168.1.10
yum update kernel
/etc/vsftpd
rpm -qc
44. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
showmount -a
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerAdmin
grep '[.*]' server1.repo
45. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
var/ftp/pub
/media/repodata
chkconfig --level 35 httpd on
46. 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
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)
yum install vsftpd
/etc/init.d/vsftpd start
47. 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
yum install vsftpd
NameVirtualHost
chmod 701
AllowOverride
48. ____ can expand and shrink ext2 and ext3 file systems
dd if=./diskboot.img of=/dev/sdc
system-config-firewall
resize2fs
yum update kernel
49. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/etc/squid/
ls -Z
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
lvdisplay -D /dev/rootvg/tmplv
50. How do you restart the apache web server?
/etc/lvmtab
/etc/init.d/httpd restart
chmod 705
select (followed by the device name such as /dev/hdb)
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