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. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
fdisk -l
chkconfig --list httpd
port 21
dd if=./diskboot.img of=/dev/sdc
2. What command starts the same menu as the text-mode First Boot process?
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)
setup
parted; mklabel k
NameVirtualHost
3. What is the first post installation step?
ls -Z
First boot process
-i (do not use -U or -F!)
LVM
4. Run the ____ command to find the device associated with the USB key.
yum -y update
parted; check x
fdisk -l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
5. what port needs to be open to access ftp?
ssh
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
port 21
AllowOverride
6. rpm ____ verifies the installed zip rpm against the rpm database
/etc/httpd/conf/
resize2fs
rpm -V zip
/ (root) - /boot and linux swap
7. Where is the vsftp pub dir?
rpm -e zip
rpm -V zip
/etc/init.d/httpd restart
/var/ftp/pub
8. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
/media/repodata
mke2fs
squid -z
9. httpd ___ to update the httpd package - automatically answering yes to all the questions
chkconfig vsftpd on
rpm -V
--import file
yum -y update
10. 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
pirut
yum clean all
ServerTokens
nfs
11. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
iptables -F
chmod 705
yum install mod_ssl squid
ServerAdmin
12. How to start the vsftp service automatically on boot?
-l
yum install httpd
/var/ftp/pub
chkconfig vsftpd on
13. 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)
NameVirtualHost
rpm -qc
rpm -V zip
14. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
-i
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
First boot process
port 21
15. What service is allowed through the default firewall?
ssh
/var/ftp/pub
/media/repodata
mke2fs
16. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
LVM
pirut
nfs
17. How do you restart the apache web server?
-l
fdisk -l
/etc/init.d/httpd restart
-i
18. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
rpm -qc
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
setsebool -P squid_connect_any 1
19. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
/etc/vsftpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)
rpm -V
20. Where is the config dir for vsftpd?
/etc/vsftpd
/etc/lvmtab
-i
rpm -ivh --replacepkgs xxxx*
21. 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
ssh
ServerTokens
yum update kernel
yum install httpd
22. ____ configuration is not available via text mode RHEL installation.
fdisk -l
LVM
/etc/init.d/vsftpd start
mke2fs
23. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
setup
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)
filesystem type is not ext2 or ext3
24. Where is vsftpd.conf?
chmod 701
yum -y update
/etc/vsftpd
dumpe2fs
25. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
telnetd : ALL EXCEPT 192.168.1.10
-K
/etc/init.d/httpd restart
26. Use grep to count how many repositories have been configured in the file server1.repo
27. rpm ____ [name of package] to verify the package - once you have manually imported the key
dumpe2fs
var/www/html
-K
/etc/vsftpd
28. How to install apache?
telnetd : ALL EXCEPT 192.168.1.10
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
Yes
29. rpm option to show me the package files
DocumentRoot
chkconfig vsftpd on
-l
lvextend -L4G /dev/rootvg/tmplv
30. Where is the main apache data directory?
resize2fs
ErrorLog
rpm -ivh --replacepkgs xxxx*
var/www/html
31. 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
DocumentRoot
iptables -F
e2fsadm
32. rpm ____ to install kernel updates
iptables -F
ErrorLog
-i (do not use -U or -F!)
yum install httpd
33. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
iptables
setsebool -P squid_connect_any 1
rpm -ivh --replacepkgs xxxx*
resize2fs /dev/myvg/homevol
34. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm -Va
NameVirtualHost
setup
fdisk
35. ____ can expand and shrink ext2 and ext3 file systems
lvextend -L4G /dev/rootvg/tmplv
chmod 705
system-config-firewall
resize2fs
36. 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
/etc/squid/
telnetd : ALL EXCEPT 192.168.1.10
/boot
iptables -F
37. Virtual Host Configuration: Names the URL for the virtual host.
setsebool -P htttpd.enable.homedirs 1
chkconfig httpd on
ServerName
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
38. 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)
chkconfig --level 35 httpd on
e2fsadm
iptables -F
yum install mod_ssl squid
39. 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:
system-config-firewall
var/ftp/pub
(rpm -q)p file (for rpmfile name)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
40. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
chkconfig httpd on
rpm -V zip
5
showmount -a
41. To list under which run levels the web service will start
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
var/ftp/pub
AllowOverride
42. 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 ____
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
ServerAdmin
elinks
43. Create a disk label for the partition table called k
parted; mklabel k
ssh
NameVirtualHost
filesystem type is not ext2 or ext3
44. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
squid -z
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)
wget (http://devmon.dev.schwab.com/index.html)
/etc/httpd/conf/
45. ____ is used for creating ext2 and ext3 file systems
/etc/lvmtab
/etc/vsftpd
-i (do not use -U or -F!)
mke2fs
46. rpm ____ verifies all installed rpms against the rpm database
e2fsadm
rpm -Va
filesystem type is not ext2 or ext3
nfs
47. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables
/boot
chkconfig --list httpd
48. What parts of rhel6 should be installed to separate volumes?
resize2fs /dev/myvg/homevol
iptables
/ (root) - /boot and linux swap
CustomLog
49. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
lvdisplay -D /dev/rootvg/tmplv
ErrorLog
ServerTokens
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
50. 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
setsebool -P squid_connect_any 1
ServerTokens
AllowOverride
parted; check x