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. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
service vsftpd status
NameVirtualHost
showmount -a
parted; check x
2. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/etc/init.d/httpd restart
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
system-config-firewall
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
3. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
LVM
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
resize2fs /dev/myvg/homevol
/media/repodata
4. 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
select (followed by the device name such as /dev/hdb)
setsebool -P squid_connect_any 1
parted /dev/hda print
ServerAdmin
5. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
var/ftp/pub
system-config-firewall
ls -Z
NameVirtualHost
6. What command starts the same menu as the text-mode First Boot process?
ErrorLog
setup
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig vsftpd on
7. 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
e2fsadm
squid -z
/boot
rpm -V
8. How to start the vsftp service automatically on boot?
ls -Z
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
chkconfig vsftpd on
9. How to disable the firewall on the current system?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
setup
iptables -F
First boot process
10. what utility can be used to open port 80?
system-config-firewall
/ (root) - /boot and linux swap
/etc/init.d/vsftpd start
var/www/html
11. 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
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -F
AllowOverride
parted /dev/hda print
12. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
-K
chkconfig httpd on
yum -y update
13. what port needs to be open to access ftp?
port 21
ServerTokens
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)
AllowOverride
14. ____ is used to modify file system parameters
(rpm -q)p file (for rpmfile name)
tune2fs
LVM
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
15. Create the basic cache directories in /var/spool/squid with the following command:
ssh
parted /dev/hda print
squid -z
resize2fs /dev/myvg/homevol
16. rpm ____ to import the rpm key for integrity checking
tune2fs
/etc/squid/
--import file
chkconfig --list httpd
17. How do you restart the apache web server?
showmount -a
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)
/etc/init.d/httpd restart
mke2fs
18. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
AllowOverride
lvextend -L4G /dev/rootvg/tmplv
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
19. Where is the vsftp pub dir?
/var/ftp/pub
rpm -e zip
rpm -V
tune2fs
20. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
filesystem type is not ext2 or ext3
/etc/httpd/conf/
chmod 705
chkconfig --level 35 httpd on
21. pam ___ will tell me if any files in the pam package have changed since it was first installed
yum -y update
yum clean all
ErrorLog
rpm -V
22. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
system-config-firewall
lvdisplay -D /dev/rootvg/tmplv
parted; check x
filesystem type is not ext2 or ext3
23. Where is the config dir for vsftpd?
e2fsadm
/etc/vsftpd
-l
fdisk -l
24. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
service vsftpd status
wget (http://devmon.dev.schwab.com/index.html)
chkconfig --list httpd
grep '[.*]' server1.repo
25. Perform a simple check of the file system. minor-num is x.
ServerName
CustomLog
parted; check x
setsebool -P squid_connect_any 1
26. To check status of ftp daemon
service vsftpd status
/etc/lvmtab
parted; mklabel k
NameVirtualHost
27. How to start the vsftp service?
First boot process
/etc/init.d/vsftpd start
port 21
fdisk
28. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
-i
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -t httpd_sys_content_t /home/michael/public_html
29. rpm ____ to install kernel updates
LVM
-i (do not use -U or -F!)
/ (root) - /boot and linux swap
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
30. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
ls -Z
setsebool -P squid_connect_any 1
filesystem type is not ext2 or ext3
31. Virtual Host Configuration: Names the URL for the virtual host.
var/www/html
tune2fs
/etc/lvmtab
ServerName
32. 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
nfs
/etc/squid/
fdisk -l
33. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
chmod 705
nfs
fdisk
rpm -V
34. The main Squid configuration file is ____/squid.conf
resize2fs
/etc/squid/
lvdisplay -D /dev/rootvg/tmplv
/etc/lvmtab
35. Create a disk label for the partition table called k
parted; mklabel k
rpm -e zip
iptables -F
ServerAdmin
36. 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
-i
parted; check x
squid -z
37. The rpm ____ option installs the package - if it isn't already installed.
-i
nfs
chkconfig --list httpd
mke2fs
38. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
/etc/vsftpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
wget (http://devmon.dev.schwab.com/index.html)
(rpm -q)p file (for rpmfile name)
39. Where is vsftpd.conf?
-K
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)
nfs
/etc/vsftpd
40. 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)
-l
/media/repodata
iptables -F
41. What service is allowed through the default firewall?
setup
showmount -a
ssh
fdisk -l
42. To update a kernel - 1) ____ 2) boot new kernel to test 3) revert to old kernel if problems 4) yum remove kernel-oldversion if no problems
yum update kernel
chkconfig --list httpd
system-config-firewall
yum install mod_ssl squid
43. ____ is used for creating ext2 and ext3 file systems
(rpm -q)p file (for rpmfile name)
mke2fs
rpm -e zip
parted /dev/hda print
44. rpm ____ verifies the installed zip rpm against the rpm database
showmount -a
chkconfig httpd on
rpm -qc
rpm -V zip
45. Where is the main apache data directory?
yum install mod_ssl squid
var/www/html
chkconfig vsftpd on
/var/ftp/pub
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 ____
--import file
-K
elinks
rpm -ivh --replacepkgs xxxx*
47. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
chkconfig vsftpd on
parted; mklabel k
-K
48. 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.
-i (do not use -U or -F!)
setup
rpm -V
Yes
49. 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
elinks
telnetd : ALL EXCEPT 192.168.1.10
-i
resize2fs /dev/myvg/homevol
50. After you edit /etc/exports - run service ___ stop...
--import file
system-config-firewall
nfs
mke2fs