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. To install both mod_ssl and squid packages
yum update kernel
chkconfig --level 35 httpd on
yum install mod_ssl squid
var/ftp/pub
2. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
fdisk -l
chkconfig --list httpd
showmount -e
3. Use parted to display disk geometry for /dev/hda and end up in shell
fdisk -l
wget (http://devmon.dev.schwab.com/index.html)
-i
parted /dev/hda print
4. The main Squid configuration file is ____/squid.conf
iptables
port 21
/etc/squid/
ErrorLog
5. 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
6. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -ivh --replacepkgs xxxx*
chmod 701
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
7. Create a disk label for the partition table called k
iptables
parted; mklabel k
iptables -F
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
8. what port needs to be open to access ftp?
-i (do not use -U or -F!)
port 21
-l
chkconfig --level 35 httpd on
9. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
tune2fs
yum install vsftpd
yum update kernel
10. Where is the main apache data directory?
var/www/html
telnetd : ALL EXCEPT 192.168.1.10
/etc/init.d/httpd restart
fdisk
11. 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
/etc/vsftpd
-l
setup
iptables
12. To list under which run levels the web service will start
squid -z
chkconfig --list httpd
resize2fs /dev/myvg/homevol
NameVirtualHost
13. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
rpm -Va
parted; check x
5
14. How to install vsftpd?
resize2fs /dev/myvg/homevol
grep '[.*]' server1.repo
rpm -e zip
yum install vsftpd
15. rpm ____ to install kernel updates
-i (do not use -U or -F!)
/etc/init.d/httpd restart
showmount -a
var/www/html
16. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
/var/ftp/pub
NameVirtualHost
e2fsadm
rpm -qc
17. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
select (followed by the device name such as /dev/hdb)
dumpe2fs
DocumentRoot
18. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
/etc/squid/
port 21
lvdisplay -D /dev/rootvg/tmplv
NameVirtualHost
19. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
yum -y update
filesystem type is not ext2 or ext3
yum install httpd
5
20. The rpm ____ option installs the package - if it isn't already installed.
filesystem type is not ext2 or ext3
iptables -F
-i
/etc/init.d/httpd start
21. How to install apache?
/etc/vsftpd
rpm -Va
yum install httpd
e2fsadm
22. Where is the vsftp pub dir?
/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)
elinks
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
23. Apache supports security by specifying active ports through the Listen and ____ directives.
iptables -F
/var/ftp/pub
NameVirtualHost
LVM
24. Create the basic cache directories in /var/spool/squid with the following command:
rpm -Va
squid -z
showmount -a
tune2fs
25. The simplest way to install Apache
chmod 705
yum install httpd
yum update kernel
yum install httpd
26. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables
parted; check x
NameVirtualHost
27. Run the ____ command to find the device associated with the USB key.
system-config-firewall
fdisk -l
dumpe2fs
/etc/squid/
28. rpm ____ verifies the installed zip rpm against the rpm database
e2fsadm
chkconfig httpd on
rpm -V zip
iptables -F
29. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum install httpd
rpm -ivh --replacepkgs xxxx*
30. what utility can be used to open port 80?
system-config-firewall
Yes
AllowOverride
ServerName
31. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
/boot
ErrorLog
var/www/html
parted /dev/hda print
32. 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
CustomLog
ServerTokens
rpm -V
yum -y update
33. If in doubt about package names - you can find them in the ...
lvextend -L4G /dev/rootvg/tmplv
service vsftpd status
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)
Yes
34. ____ configuration is not available via text mode RHEL installation.
LVM
pirut
yum install vsftpd
ServerName
35. Where to find the main apache config file?
fdisk -l
/etc/httpd/conf/
nfs
(rpm -q)p file (for rpmfile name)
36. rpm ____ [name of package] to verify the package - once you have manually imported the key
ls -Z
-K
/etc/lvmtab
rpm -Va
37. 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:
/etc/httpd/conf/
rpm -e zip
htpasswd -c /etc/httpd/webpass e
service vsftpd status
38. 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
grep '[.*]' server1.repo
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
iptables -F
39. ____ prints superblock and block group information.
yum install httpd
dumpe2fs
mke2fs
rpm -Va
40. 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
parted; check x
chmod 701
LVM
41. Where is vsftpd.conf?
LVM
NameVirtualHost
/etc/vsftpd
lvdisplay -D /dev/rootvg/tmplv
42. 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 ____
rpm -e zip
ServerTokens
rpm -V
squid -z
43. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
/media/repodata
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
showmount -e
filesystem type is not ext2 or ext3
44. rpm option to show me the package files
var/www/html
-l
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
resize2fs /dev/myvg/homevol
45. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
service vsftpd status
fdisk
ErrorLog
resize2fs
46. How to start apache service?
-i
/etc/init.d/httpd start
chkconfig vsftpd on
-K
47. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ServerTokens
chkconfig vsftpd on
rpm -ivh --replacepkgs xxxx*
resize2fs /dev/myvg/homevol
48. Virtual Host Configuration: Names the URL for the virtual host.
wget (http://devmon.dev.schwab.com/index.html)
ServerName
/etc/init.d/httpd start
CustomLog
49. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
5
ServerAdmin
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
select (followed by the device name such as /dev/hdb)
50. ____ is used for creating ext2 and ext3 file systems
mke2fs
setsebool -P htttpd.enable.homedirs 1
port 21
CustomLog