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. 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
resize2fs
rpm -ivh --replacepkgs xxxx*
ls -Z
iptables
2. What is the first post installation step?
ServerAdmin
AllowOverride
lvextend -L4G /dev/rootvg/tmplv
First boot process
3. How to start the vsftp service?
/media/repodata
pirut
var/ftp/pub
/etc/init.d/vsftpd start
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
LVM
port 21
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
setsebool -P squid_connect_any 1
5. _____ will change the size of /dev/rootvg/tmplv to 4 gig
fdisk -l
resize2fs /dev/myvg/homevol
lvextend -L4G /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
6. To check status of ftp daemon
-i
service vsftpd status
parted /dev/hda print
parted; check x
7. How to make sure apache starts automatically on next reboot?
chkconfig --list httpd
parted /dev/hda print
setup
chkconfig httpd on
8. 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)
lvextend -L4G /dev/rootvg/tmplv
ServerName
e2fsadm
iptables -F
9. What parts of rhel6 should be installed to separate volumes?
rpm -qc
iptables -F
fdisk
/ (root) - /boot and linux swap
10. 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
lvdisplay -D /dev/rootvg/tmplv
ls -Z
iptables
11. The main Squid configuration file is ____/squid.conf
rpm -V
fdisk
/etc/squid/
chmod 701
12. What is the standard directory for file sharing with vsFTP?
yum install mod_ssl squid
(rpm -q)p file (for rpmfile name)
var/ftp/pub
/etc/squid/
13. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
wget (http://devmon.dev.schwab.com/index.html)
parted; mklabel k
dd if=./diskboot.img of=/dev/sdc
service vsftpd status
14. 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 /dev/hda print
yum install mod_ssl squid
pirut
15. If in doubt about package names - you can find them in the ...
chkconfig vsftpd on
/etc/lvmtab
tune2fs
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)
16. Run the ____ command to find the device associated with the USB key.
setsebool -P htttpd.enable.homedirs 1
fdisk -l
rpm -V
rpm -V
17. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
/etc/vsftpd
rpm -V
--import file
18. Perform a simple check of the file system. minor-num is x.
filesystem type is not ext2 or ext3
parted; check x
ErrorLog
service vsftpd status
19. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
nfs
rpm -ivh --replacepkgs xxxx*
fdisk -l
resize2fs /dev/myvg/homevol
20. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
yum update kernel
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)
tune2fs
21. After you edit /etc/exports - run service ___ stop...
/boot
nfs
elinks
grep '[.*]' server1.repo
22. The simplest way to install Apache
/ (root) - /boot and linux swap
rpm -e zip
yum install httpd
select (followed by the device name such as /dev/hdb)
23. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
tune2fs
yum clean all
rpm -V
24. rpm ____ [name of package] to verify the package - once you have manually imported the key
rpm -V zip
-K
showmount -a
resize2fs
25. 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
/etc/init.d/httpd start
parted; check x
/boot
/ (root) - /boot and linux swap
26. 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.
dd if=./diskboot.img of=/dev/sdc
fdisk -l
var/www/html
iptables -F
27. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
/etc/squid/
resize2fs /dev/myvg/homevol
yum install vsftpd
28. 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
telnetd : ALL EXCEPT 192.168.1.10
/etc/init.d/vsftpd start
select (followed by the device name such as /dev/hdb)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
29. Where is the vsftp pub dir?
/var/ftp/pub
elinks
rpm -V
ssh
30. How do you restart the apache web server?
/etc/vsftpd
/etc/init.d/httpd restart
iptables -F
chmod 701
31. rpm ____ to import the rpm key for integrity checking
rpm -qc
--import file
Yes
port 21
32. To install both mod_ssl and squid packages
setsebool -P squid_connect_any 1
rpm -qc
/etc/init.d/httpd start
yum install mod_ssl squid
33. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
chkconfig httpd on
squid -z
/etc/vsftpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
34. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
/etc/vsftpd
/ (root) - /boot and linux swap
setsebool -P htttpd.enable.homedirs 1
5
35. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
tune2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/squid/
chmod 705
36. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
rpm -V
-K
wget (http://devmon.dev.schwab.com/index.html)
ServerName
37. ____ prints superblock and block group information.
/etc/squid/
dumpe2fs
rpm -ivh --replacepkgs xxxx*
nfs
38. 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
yum install mod_ssl squid
ssh
iptables
39. The rpm ____ option installs the package - if it isn't already installed.
-i
var/www/html
nfs
ErrorLog
40. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
telnetd : ALL EXCEPT 192.168.1.10
yum install mod_ssl squid
fdisk -l
showmount -a
41. 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)
yum update kernel
chcon -R -t httpd_sys_content_t /home/michael/public_html
chmod 705
42. ____ configuration is not available via text mode RHEL installation.
var/www/html
dumpe2fs
setup
LVM
43. 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
filesystem type is not ext2 or ext3
iptables -F
yum update kernel
/etc/lvmtab
44. what port needs to be open to access ftp?
port 21
CustomLog
lvdisplay -D /dev/rootvg/tmplv
telnetd : ALL EXCEPT 192.168.1.10
45. 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
46. Where is the config dir for vsftpd?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
NameVirtualHost
/etc/vsftpd
rpm -V zip
47. 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
-K
AllowOverride
/etc/init.d/httpd restart
48. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum -y update
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
NameVirtualHost
49. 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)
CustomLog
ServerTokens
lvextend -L4G /dev/rootvg/tmplv
var/www/html
50. Create a disk label for the partition table called k
yum -y update
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-K
parted; mklabel k