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. 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
parted; check x
telnetd : ALL EXCEPT 192.168.1.10
squid -z
2. what port needs to be open to access ftp?
5
port 21
LVM
rpm -V
3. You can use the ____ tool after installation to add any package groups that you missed.
mke2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
var/ftp/pub
pirut
4. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
chmod 705
yum install httpd
rpm -ivh --replacepkgs xxxx*
chmod 701
5. Where to find the main apache config file?
/etc/httpd/conf/
port 21
yum install mod_ssl squid
-i
6. What is the first post installation step?
First boot process
rpm -V zip
e2fsadm
rpm -V
7. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
setsebool -P squid_connect_any 1
-i (do not use -U or -F!)
wget (http://devmon.dev.schwab.com/index.html)
8. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
rpm -V zip
rpm -V
chmod 705
yum update kernel
9. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
yum clean all
yum install vsftpd
yum install mod_ssl squid
wget (http://devmon.dev.schwab.com/index.html)
10. 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
yum update kernel
dumpe2fs
chmod 705
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
11. 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.
var/www/html
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
/etc/vsftpd
12. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
mke2fs
filesystem type is not ext2 or ext3
-l
showmount -e
13. Where is the main apache data directory?
resize2fs
rpm -Va
var/www/html
-l
14. 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)
fdisk -l
CustomLog
resize2fs /dev/myvg/homevol
dd if=./diskboot.img of=/dev/sdc
15. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
showmount -e
CustomLog
var/www/html
16. Create a disk label for the partition table called k
nfs
parted; mklabel k
-i
chcon -R -t httpd_sys_content_t /home/michael/public_html
17. ____ is used for creating ext2 and ext3 file systems
mke2fs
filesystem type is not ext2 or ext3
var/www/html
var/ftp/pub
18. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
dumpe2fs
iptables
yum -y update
19. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
ServerName
resize2fs
fdisk -l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
20. 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.
First boot process
iptables -F
chcon -R -t httpd_sys_content_t /home/michael/public_html
(rpm -q)p file (for rpmfile name)
21. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
ssh
setsebool -P htttpd.enable.homedirs 1
grep '[.*]' server1.repo
(rpm -q)p file (for rpmfile name)
22. If in doubt about package names - you can find them in the ...
ServerAdmin
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)
5
-i
23. rpm ____ verifies the installed zip rpm against the rpm database
yum install mod_ssl squid
nfs
rpm -V zip
fdisk -l
24. Use parted to display disk geometry for /dev/hda and end up in shell
ServerTokens
/etc/init.d/httpd restart
parted /dev/hda print
fdisk -l
25. ____ configuration is not available via text mode RHEL installation.
LVM
setsebool -P htttpd.enable.homedirs 1
yum update kernel
/ (root) - /boot and linux swap
26. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chkconfig vsftpd on
ServerAdmin
e2fsadm
-l
27. Tthe file that might contain: oldvg - rootvg - etc.
/var/ftp/pub
var/ftp/pub
/etc/lvmtab
setsebool -P htttpd.enable.homedirs 1
28. 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)
NameVirtualHost
/etc/vsftpd
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:
rpm -ivh --replacepkgs xxxx*
CustomLog
-K
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
30. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
port 21
ServerName
yum install httpd
31. ____ prints superblock and block group information.
dumpe2fs
setsebool -P htttpd.enable.homedirs 1
fdisk
fdisk -l
32. 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
33. Virtual Host Configuration: Names the URL for the virtual host.
rpm -V
setup
ServerName
showmount -e
34. To install both mod_ssl and squid packages
rpm -V zip
/boot
pirut
yum install mod_ssl squid
35. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
/ (root) - /boot and linux swap
select (followed by the device name such as /dev/hdb)
AllowOverride
36. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
showmount -e
fdisk -l
iptables
yum clean all
37. 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
ls -Z
--import file
setsebool -P squid_connect_any 1
ServerTokens
38. Are SELinux and iptables-based firewalls are enabled by default?
Yes
nfs
/etc/init.d/vsftpd start
(rpm -q)p file (for rpmfile name)
39. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
fdisk -l
AllowOverride
fdisk
40. How do you restart the apache web server?
/etc/init.d/httpd restart
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerTokens
-i (do not use -U or -F!)
41. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum clean all
dumpe2fs
yum -y update
mke2fs
42. How to install vsftpd?
ServerTokens
yum update kernel
rpm -qc
yum install vsftpd
43. Run the ____ command to find the device associated with the USB key.
First boot process
rpm -ivh --replacepkgs xxxx*
fdisk -l
NameVirtualHost
44. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
rpm -V
dd if=./diskboot.img of=/dev/sdc
filesystem type is not ext2 or ext3
iptables
45. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
dumpe2fs
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
46. 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 ____
-K
chkconfig --level 35 httpd on
rpm -Va
rpm -e zip
47. 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:
showmount -e
iptables
5
/etc/lvmtab
48. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
rpm -qc
htpasswd -c /etc/httpd/webpass e
iptables
fdisk
49. The main Squid configuration file is ____/squid.conf
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
Yes
/etc/squid/
/etc/httpd/conf/
50. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
showmount -e
parted /dev/hda print
setsebool -P squid_connect_any 1
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)