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. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
elinks
resize2fs
dumpe2fs
chmod 705
2. rpm ____ to import the rpm key for integrity checking
--import file
elinks
yum install httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
3. Perform a simple check of the file system. minor-num is x.
yum install httpd
filesystem type is not ext2 or ext3
parted; check x
parted /dev/hda print
4. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
tune2fs
filesystem type is not ext2 or ext3
var/www/html
5. rpm ____ to install kernel updates
-i (do not use -U or -F!)
LVM
-i
parted; check x
6. Where is the main apache data directory?
/etc/init.d/vsftpd start
5
iptables -F
var/www/html
7. rpm ____ [name of package] to verify the package - once you have manually imported the key
fdisk
-K
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
8. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
/etc/squid/
yum install httpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
select (followed by the device name such as /dev/hdb)
9. To check status of ftp daemon
iptables -F
rpm -V zip
mke2fs
service vsftpd status
10. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
rpm -e zip
pirut
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)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
11. Where is vsftpd.conf?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/vsftpd start
telnetd : ALL EXCEPT 192.168.1.10
/etc/vsftpd
12. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
ErrorLog
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
chmod 701
13. ____ can expand and shrink ext2 and ext3 file systems
/var/ftp/pub
rpm -qc
fdisk -l
resize2fs
14. Where is the config dir for vsftpd?
/etc/vsftpd
setsebool -P htttpd.enable.homedirs 1
fdisk -l
/etc/init.d/httpd restart
15. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
/etc/httpd/conf/
parted /dev/hda print
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -t httpd_sys_content_t /home/michael/public_html
16. How to start the vsftp service?
squid -z
yum -y update
/etc/init.d/vsftpd start
Yes
17. httpd ___ shows me what config files were installed when the httpd package was installed
/etc/vsftpd
rpm -qc
elinks
Yes
18. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk
ErrorLog
5
19. Use parted to display disk geometry for /dev/hda and end up in shell
nfs
parted /dev/hda print
select (followed by the device name such as /dev/hdb)
iptables
20. ____ is used to modify file system parameters
ls -Z
tune2fs
showmount -a
iptables
21. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/media/repodata
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
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)
22. 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
LVM
yum -y update
rpm -V
iptables
23. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
e2fsadm
/etc/vsftpd
pirut
24. The rpm ____ option installs the package - if it isn't already installed.
rpm -V
ls -Z
-i
/boot
25. Virtual Host Configuration: Sets a root directory for the virtual host.
chkconfig --list httpd
DocumentRoot
filesystem type is not ext2 or ext3
ServerName
26. Create a disk label for the partition table called k
-l
parted; mklabel k
ssh
-i
27. What parts of rhel6 should be installed to separate volumes?
First boot process
setsebool -P htttpd.enable.homedirs 1
e2fsadm
/ (root) - /boot and linux swap
28. What is the first post installation step?
filesystem type is not ext2 or ext3
-l
First boot process
(rpm -q)p file (for rpmfile name)
29. How to make sure apache starts automatically on next reboot?
chkconfig --level 35 httpd on
/etc/lvmtab
chkconfig httpd on
tune2fs
30. rpm option to show me the package files
-l
showmount -e
pirut
lvextend -L4G /dev/rootvg/tmplv
31. How to start apache service?
/etc/init.d/httpd start
select (followed by the device name such as /dev/hdb)
NameVirtualHost
showmount -a
32. 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)
showmount -a
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/boot
e2fsadm
33. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
resize2fs /dev/myvg/homevol
iptables -F
First boot process
34. Create the basic cache directories in /var/spool/squid with the following command:
CustomLog
chkconfig --level 35 httpd on
squid -z
setup
35. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
ServerAdmin
iptables -F
telnetd : ALL EXCEPT 192.168.1.10
dd if=./diskboot.img of=/dev/sdc
36. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
showmount -e
/media/repodata
(rpm -q)p file (for rpmfile name)
squid -z
37. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
AllowOverride
setsebool -P htttpd.enable.homedirs 1
/etc/init.d/httpd restart
rpm -ivh --replacepkgs xxxx*
38. How to start the vsftp service automatically on boot?
NameVirtualHost
parted; mklabel k
chkconfig vsftpd on
setsebool -P htttpd.enable.homedirs 1
39. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
/etc/vsftpd
system-config-firewall
dd if=./diskboot.img of=/dev/sdc
40. Where is the vsftp pub dir?
/var/ftp/pub
-l
iptables -F
/etc/init.d/httpd start
41. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
parted; mklabel k
--import file
5
ls -Z
42. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
ls -Z
e2fsadm
yum -y update
43. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
/etc/httpd/conf/
/etc/squid/
AllowOverride
showmount -a
44. 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
rpm -V
CustomLog
chmod 705
45. How to install apache?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/var/ftp/pub
yum install httpd
/etc/init.d/httpd start
46. Apache supports security by specifying active ports through the Listen and ____ directives.
rpm -e zip
NameVirtualHost
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update
47. How do you restart the apache web server?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
var/www/html
/etc/init.d/httpd restart
resize2fs
48. The main Squid configuration file is ____/squid.conf
parted /dev/hda print
pirut
/etc/squid/
chkconfig --level 35 httpd on
49. To install both mod_ssl and squid packages
rpm -ivh --replacepkgs xxxx*
yum install mod_ssl squid
fdisk -l
-l
50. rpm ____ verifies the installed zip rpm against the rpm database
dumpe2fs
rpm -V zip
/etc/vsftpd
service vsftpd status