SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 is the first post installation step?
system-config-firewall
First boot process
--import file
CustomLog
2. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
ls -Z
/etc/init.d/httpd restart
pirut
dd if=./diskboot.img of=/dev/sdc
3. How to install vsftpd?
yum install vsftpd
First boot process
(rpm -q)p file (for rpmfile name)
/var/ftp/pub
4. Tthe file that might contain: oldvg - rootvg - etc.
nfs
/etc/lvmtab
ls -Z
parted /dev/hda print
5. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
yum -y update
rpm -ivh --replacepkgs xxxx*
wget (http://devmon.dev.schwab.com/index.html)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
6. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
setup
fdisk -l
-i (do not use -U or -F!)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
7. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
NameVirtualHost
iptables -F
5
parted; mklabel k
8. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
e2fsadm
fdisk -l
/etc/lvmtab
9. What command starts the same menu as the text-mode First Boot process?
setsebool -P htttpd.enable.homedirs 1
telnetd : ALL EXCEPT 192.168.1.10
pirut
setup
10. 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)
yum install httpd
CustomLog
e2fsadm
resize2fs /dev/myvg/homevol
11. 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:
NameVirtualHost
/etc/httpd/conf/
showmount -e
parted; mklabel k
12. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
/media/repodata
yum install mod_ssl squid
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
13. 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
/boot
ls -Z
setsebool -P squid_connect_any 1
14. Run the ____ command to find the device associated with the USB key.
yum install httpd
fdisk -l
ls -Z
yum clean all
15. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
port 21
/boot
iptables
16. 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 ____
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
elinks
var/ftp/pub
/etc/vsftpd
17. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
dumpe2fs
resize2fs
lvdisplay -D /dev/rootvg/tmplv
18. Create a disk label for the partition table called k
rpm -ivh --replacepkgs xxxx*
yum install mod_ssl squid
setsebool -P squid_connect_any 1
parted; mklabel k
19. How to start apache service?
-l
/etc/init.d/httpd start
parted; mklabel k
ErrorLog
20. Where is the main apache data directory?
LVM
elinks
dumpe2fs
var/www/html
21. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -qc
5
fdisk -l
nfs
22. Are SELinux and iptables-based firewalls are enabled by default?
Yes
5
--import file
/etc/httpd/conf/
23. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
rpm -e zip
rpm -qc
filesystem type is not ext2 or ext3
24. How to start the vsftp service automatically on boot?
/media/repodata
chkconfig vsftpd on
chmod 701
-i
25. what port needs to be open to access ftp?
showmount -e
port 21
yum install vsftpd
iptables -F
26. What service is allowed through the default firewall?
/etc/init.d/httpd restart
-i
lvextend -L4G /dev/rootvg/tmplv
ssh
27. 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 ____
squid -z
rpm -V
/media/repodata
rpm -e zip
28. 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:
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V
29. 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
AllowOverride
yum install vsftpd
yum update kernel
fdisk -l
30. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
rpm -V
CustomLog
mke2fs
31. How to disable the firewall on the current system?
dumpe2fs
iptables -F
tune2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
32. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
yum -y update
yum update kernel
rpm -V zip
showmount -a
33. How to make sure apache starts automatically on next reboot?
lvdisplay -D /dev/rootvg/tmplv
dumpe2fs
chkconfig httpd on
/etc/squid/
34. You can use the ____ tool after installation to add any package groups that you missed.
/media/repodata
pirut
port 21
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
35. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
squid -z
rpm -V
port 21
36. To check status of ftp daemon
service vsftpd status
ServerName
ServerTokens
LVM
37. What parts of rhel6 should be installed to separate volumes?
grep '[.*]' server1.repo
ls -Z
/etc/init.d/httpd restart
/ (root) - /boot and linux swap
38. To install both mod_ssl and squid packages
select (followed by the device name such as /dev/hdb)
CustomLog
yum install mod_ssl squid
rpm -Va
39. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
DocumentRoot
var/ftp/pub
iptables -F
40. 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
yum install mod_ssl squid
parted /dev/hda print
dumpe2fs
ServerTokens
41. The simplest way to install Apache
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)
lvdisplay -D /dev/rootvg/tmplv
setsebool -P htttpd.enable.homedirs 1
yum install httpd
42. If in doubt about package names - you can find them in the ...
/etc/init.d/httpd start
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)
showmount -a
ssh
43. rpm ____ to import the rpm key for integrity checking
--import file
/etc/init.d/vsftpd start
setup
-i (do not use -U or -F!)
44. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
e2fsadm
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
LVM
showmount -e
45. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
-i (do not use -U or -F!)
resize2fs /dev/myvg/homevol
port 21
iptables
46. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum install httpd
chkconfig --list httpd
(rpm -q)p file (for rpmfile name)
/etc/vsftpd
47. Where is vsftpd.conf?
squid -z
-K
/etc/init.d/httpd restart
/etc/vsftpd
48. How to start the vsftp service?
/etc/httpd/conf/
lvextend -L4G /dev/rootvg/tmplv
/etc/init.d/vsftpd start
parted; check x
49. 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
iptables -F
resize2fs /dev/myvg/homevol
chmod 705
50. 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
yum update kernel
-K
showmount -e
telnetd : ALL EXCEPT 192.168.1.10