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 command starts the same menu as the text-mode First Boot process?
lvdisplay -D /dev/rootvg/tmplv
setup
yum -y update
NameVirtualHost
2. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
select (followed by the device name such as /dev/hdb)
rpm -V zip
filesystem type is not ext2 or ext3
mke2fs
3. ____ is used to modify file system parameters
tune2fs
parted /dev/hda print
yum install httpd
CustomLog
4. httpd ___ to update the httpd package - automatically answering yes to all the questions
setsebool -P squid_connect_any 1
resize2fs /dev/myvg/homevol
yum -y update
--import file
5. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
ServerName
/var/ftp/pub
/media/repodata
6. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum install httpd
rpm -V
iptables -F
(rpm -q)p file (for rpmfile name)
7. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chmod 701
setsebool -P htttpd.enable.homedirs 1
system-config-firewall
iptables -F
8. Where is the main apache data directory?
e2fsadm
setsebool -P htttpd.enable.homedirs 1
var/www/html
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
9. 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.
rpm -V
/media/repodata
DocumentRoot
yum update kernel
10. The rpm ____ option installs the package - if it isn't already installed.
setup
ls -Z
-i
/etc/vsftpd
11. rpm ____ [name of package] to verify the package - once you have manually imported the key
fdisk -l
/etc/vsftpd
resize2fs
-K
12. Create a disk label for the partition table called k
/etc/lvmtab
-l
parted; mklabel k
fdisk -l
13. 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
ssh
pirut
telnetd : ALL EXCEPT 192.168.1.10
var/ftp/pub
14. 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:
(rpm -q)p file (for rpmfile name)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -e
nfs
15. If in doubt about package names - you can find them in the ...
-i
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)
LVM
/etc/httpd/conf/
16. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
yum -y update
chmod 705
17. ____ prints superblock and block group information.
parted /dev/hda print
system-config-firewall
/etc/httpd/conf/
dumpe2fs
18. Where to find the main apache config file?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
tune2fs
ServerTokens
/etc/httpd/conf/
19. To install both mod_ssl and squid packages
system-config-firewall
select (followed by the device name such as /dev/hdb)
/etc/httpd/conf/
yum install mod_ssl squid
20. To check status of ftp daemon
service vsftpd status
ls -Z
(rpm -q)p file (for rpmfile name)
rpm -ivh --replacepkgs xxxx*
21. what port needs to be open to access ftp?
resize2fs /dev/myvg/homevol
grep '[.*]' server1.repo
parted; check x
port 21
22. What is the standard directory for file sharing with vsFTP?
filesystem type is not ext2 or ext3
parted; check x
var/ftp/pub
ServerAdmin
23. What service is allowed through the default firewall?
-i (do not use -U or -F!)
/etc/vsftpd
elinks
ssh
24. what utility can be used to open port 80?
yum update kernel
ServerName
nfs
system-config-firewall
25. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ssh
squid -z
rpm -V zip
26. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
dumpe2fs
nfs
-l
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
27. 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
28. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
/etc/vsftpd
chkconfig --level 35 httpd on
rpm -ivh --replacepkgs xxxx*
29. The simplest way to install Apache
resize2fs
yum install httpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/httpd/conf/
30. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
yum clean all
port 21
filesystem type is not ext2 or ext3
31. After you edit /etc/exports - run service ___ stop...
setsebool -P squid_connect_any 1
ls -Z
chmod 705
nfs
32. pam ___ will tell me if any files in the pam package have changed since it was first installed
/etc/init.d/vsftpd start
rpm -V
grep '[.*]' server1.repo
pirut
33. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
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
fdisk
service vsftpd status
34. 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 ____
Yes
ls -Z
elinks
squid -z
35. ____ can expand and shrink ext2 and ext3 file systems
ErrorLog
elinks
resize2fs
ServerName
36. 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
AllowOverride
dd if=./diskboot.img of=/dev/sdc
setsebool -P htttpd.enable.homedirs 1
setsebool -P squid_connect_any 1
37. What parts of rhel6 should be installed to separate volumes?
rpm -qc
var/ftp/pub
yum install httpd
/ (root) - /boot and linux swap
38. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
service vsftpd status
chkconfig --level 35 httpd on
resize2fs /dev/myvg/homevol
/etc/init.d/vsftpd start
39. 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
-K
telnetd : ALL EXCEPT 192.168.1.10
/boot
Yes
40. 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
iptables
-K
/media/repodata
/boot
41. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
chcon -R -t httpd_sys_content_t /home/michael/public_html
nfs
LVM
42. _____ will change the size of /dev/rootvg/tmplv to 4 gig
/ (root) - /boot and linux swap
setup
lvextend -L4G /dev/rootvg/tmplv
chmod 705
43. 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
-i (do not use -U or -F!)
filesystem type is not ext2 or ext3
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ServerTokens
44. 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
chkconfig --level 35 httpd on
AllowOverride
select (followed by the device name such as /dev/hdb)
-K
45. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
dd if=./diskboot.img of=/dev/sdc
/boot
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
46. You can use the ____ tool after installation to add any package groups that you missed.
rpm -V
/boot
/etc/init.d/httpd start
pirut
47. ____ configuration is not available via text mode RHEL installation.
iptables -F
select (followed by the device name such as /dev/hdb)
setsebool -P htttpd.enable.homedirs 1
LVM
48. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
ServerTokens
wget (http://devmon.dev.schwab.com/index.html)
NameVirtualHost
AllowOverride
49. ____ is used for creating ext2 and ext3 file systems
parted; check x
ls -Z
DocumentRoot
mke2fs
50. To list under which run levels the web service will start
chkconfig --list httpd
/boot
chmod 705
-i (do not use -U or -F!)