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 port needs to be open to access ftp?
filesystem type is not ext2 or ext3
NameVirtualHost
ErrorLog
port 21
2. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
ServerAdmin
chmod 701
Yes
5
3. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
filesystem type is not ext2 or ext3
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
showmount -a
DocumentRoot
4. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
telnetd : ALL EXCEPT 192.168.1.10
yum update kernel
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerAdmin
5. If in doubt about package names - you can find them in the ...
/etc/vsftpd
CustomLog
yum -y update
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)
6. How to start the vsftp service?
lvdisplay -D /dev/rootvg/tmplv
chkconfig vsftpd on
/etc/init.d/vsftpd start
-i
7. 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
resize2fs
nfs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
8. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
service vsftpd status
lvdisplay -D /dev/rootvg/tmplv
var/ftp/pub
9. ____ prints superblock and block group information.
rpm -V
yum install vsftpd
dumpe2fs
setup
10. 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
setsebool -P squid_connect_any 1
iptables -F
iptables
rpm -e zip
11. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
service vsftpd status
parted; mklabel k
NameVirtualHost
ErrorLog
12. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
port 21
rpm -V zip
/etc/vsftpd
13. Perform a simple check of the file system. minor-num is x.
iptables
parted; check x
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
nfs
14. Where is vsftpd.conf?
/etc/vsftpd
grep '[.*]' server1.repo
rpm -e zip
yum install httpd
15. ____ configuration is not available via text mode RHEL installation.
LVM
dumpe2fs
rpm -e zip
/etc/vsftpd
16. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
mke2fs
iptables
/etc/vsftpd
17. 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/squid/
/etc/vsftpd
rpm -V
e2fsadm
18. 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)
resize2fs /dev/myvg/homevol
resize2fs
CustomLog
yum install httpd
19. 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.
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -a
setup
iptables -F
20. 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
/etc/vsftpd
chkconfig httpd on
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -t httpd_sys_content_t /home/michael/public_html
21. 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
iptables -F
AllowOverride
/etc/init.d/httpd restart
DocumentRoot
22. 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
tune2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
parted; check x
/etc/squid/
23. 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:
DocumentRoot
showmount -e
LVM
service vsftpd status
24. Where is the config dir for vsftpd?
/etc/vsftpd
fdisk -l
-i (do not use -U or -F!)
htpasswd -c /etc/httpd/webpass e
25. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
rpm -Va
chcon -R -t httpd_sys_content_t /home/michael/public_html
htpasswd -c /etc/httpd/webpass e
(rpm -q)p file (for rpmfile name)
26. To list under which run levels the web service will start
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install vsftpd
rpm -V zip
chkconfig --list httpd
27. httpd ___ shows me what config files were installed when the httpd package was installed
lvextend -L4G /dev/rootvg/tmplv
rpm -e zip
chkconfig vsftpd on
rpm -qc
28. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
chkconfig --level 35 httpd on
First boot process
fdisk
chkconfig --list httpd
29. Create the basic cache directories in /var/spool/squid with the following command:
ServerTokens
/etc/httpd/conf/
NameVirtualHost
squid -z
30. 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 ____
/ (root) - /boot and linux swap
yum -y update
elinks
/etc/httpd/conf/
31. 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
iptables -F
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
elinks
32. To check status of ftp daemon
ServerAdmin
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
service vsftpd status
chkconfig vsftpd on
33. rpm option to show me the package files
/var/ftp/pub
select (followed by the device name such as /dev/hdb)
system-config-firewall
-l
34. '____ /var/www' will tell you the ACL settings of /var/www
fdisk -l
showmount -e
ls -Z
5
35. Where to find the main apache config file?
/etc/httpd/conf/
-l
(rpm -q)p file (for rpmfile name)
ServerName
36. 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
37. rpm ____ to install kernel updates
rpm -V zip
-i (do not use -U or -F!)
ErrorLog
resize2fs
38. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
iptables -F
--import file
iptables -F
dd if=./diskboot.img of=/dev/sdc
39. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
-i
CustomLog
5
40. You can use the ____ tool after installation to add any package groups that you missed.
chmod 701
rpm -e zip
pirut
/media/repodata
41. ____ is used for creating ext2 and ext3 file systems
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/vsftpd
/etc/init.d/httpd start
mke2fs
42. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
lvextend -L4G /dev/rootvg/tmplv
chmod 701
rpm -V
wget (http://devmon.dev.schwab.com/index.html)
43. Are SELinux and iptables-based firewalls are enabled by default?
rpm -e zip
Yes
service vsftpd status
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
44. What is the standard directory for file sharing with vsFTP?
rpm -ivh --replacepkgs xxxx*
chkconfig vsftpd on
var/ftp/pub
yum install mod_ssl squid
45. what utility can be used to open port 80?
system-config-firewall
iptables -F
yum -y update
NameVirtualHost
46. What is the first post installation step?
fdisk -l
First boot process
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
lvdisplay -D /dev/rootvg/tmplv
47. ____ is used to modify file system parameters
tune2fs
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
mke2fs
CustomLog
48. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum install mod_ssl squid
select (followed by the device name such as /dev/hdb)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
pirut
49. Create a disk label for the partition table called k
tune2fs
NameVirtualHost
showmount -e
parted; mklabel k
50. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum clean all
LVM
chkconfig vsftpd on
-i (do not use -U or -F!)