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. To list under which run levels the web service will start
chkconfig --list httpd
system-config-firewall
fdisk -l
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
2. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
e2fsadm
AllowOverride
filesystem type is not ext2 or ext3
3. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
rpm -V zip
/etc/lvmtab
-K
4. Run the ____ command to find the device associated with the USB key.
/etc/httpd/conf/
select (followed by the device name such as /dev/hdb)
fdisk -l
ServerName
5. Where is the config dir for vsftpd?
/etc/vsftpd
resize2fs /dev/myvg/homevol
LVM
parted; check x
6. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig httpd on
Yes
chkconfig --level 35 httpd on
ErrorLog
7. '____ /var/www' will tell you the ACL settings of /var/www
setsebool -P squid_connect_any 1
ls -Z
chcon -R -t httpd_sys_content_t /home/michael/public_html
ErrorLog
8. what port needs to be open to access ftp?
port 21
yum install vsftpd
yum clean all
(rpm -q)p file (for rpmfile name)
9. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
chkconfig vsftpd on
dumpe2fs
chmod 701
10. Are SELinux and iptables-based firewalls are enabled by default?
Yes
lvdisplay -D /dev/rootvg/tmplv
chmod 701
dumpe2fs
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
chmod 701
AllowOverride
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
LVM
12. 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.
yum install mod_ssl squid
rpm -V
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/vsftpd start
13. 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
rpm -ivh --replacepkgs xxxx*
/etc/squid/
rpm -V
ServerTokens
14. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
-i (do not use -U or -F!)
ErrorLog
ServerTokens
15. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
rpm -e zip
lvdisplay -D /dev/rootvg/tmplv
dd if=./diskboot.img of=/dev/sdc
AllowOverride
16. Where is the vsftp pub dir?
iptables
/var/ftp/pub
yum update kernel
Yes
17. 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
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
chkconfig vsftpd on
18. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -F
yum install vsftpd
resize2fs /dev/myvg/homevol
19. How to make sure apache starts automatically on next reboot?
/etc/vsftpd
chkconfig httpd on
/ (root) - /boot and linux swap
ServerAdmin
20. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
ServerName
yum clean all
telnetd : ALL EXCEPT 192.168.1.10
nfs
21. The simplest way to install Apache
yum install vsftpd
yum install httpd
ssh
lvdisplay -D /dev/rootvg/tmplv
22. Virtual Host Configuration: Sets a root directory for the virtual host.
select (followed by the device name such as /dev/hdb)
rpm -Va
DocumentRoot
ServerName
23. How to start the vsftp service?
grep '[.*]' server1.repo
/etc/init.d/vsftpd start
showmount -a
iptables -F
24. ____ is used to modify file system parameters
tune2fs
-i (do not use -U or -F!)
/etc/init.d/httpd restart
lvdisplay -D /dev/rootvg/tmplv
25. What parts of rhel6 should be installed to separate volumes?
-l
rpm -ivh --replacepkgs xxxx*
LVM
/ (root) - /boot and linux swap
26. The rpm ____ option installs the package - if it isn't already installed.
iptables -F
-i
pirut
yum update kernel
27. How to install apache?
setup
ServerName
yum install httpd
rpm -Va
28. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
resize2fs
/etc/lvmtab
iptables -F
29. 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
chkconfig --list httpd
system-config-firewall
30. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
yum install mod_ssl squid
dd if=./diskboot.img of=/dev/sdc
chkconfig vsftpd on
fdisk
31. Where is vsftpd.conf?
fdisk -l
/etc/init.d/httpd restart
yum install mod_ssl squid
/etc/vsftpd
32. ____ configuration is not available via text mode RHEL installation.
select (followed by the device name such as /dev/hdb)
--import file
e2fsadm
LVM
33. what utility can be used to open port 80?
yum install httpd
NameVirtualHost
lvextend -L4G /dev/rootvg/tmplv
system-config-firewall
34. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
port 21
5
lvextend -L4G /dev/rootvg/tmplv
ServerName
35. How to install vsftpd?
yum install vsftpd
port 21
ErrorLog
yum install httpd
36. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
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)
resize2fs /dev/myvg/homevol
system-config-firewall
/media/repodata
37. What is the first post installation step?
fdisk -l
First boot process
showmount -a
iptables
38. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
service vsftpd status
yum install httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
39. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
wget (http://devmon.dev.schwab.com/index.html)
htpasswd -c /etc/httpd/webpass e
chmod 705
service vsftpd status
40. What is the standard directory for file sharing with vsFTP?
/etc/init.d/httpd start
NameVirtualHost
var/ftp/pub
/etc/httpd/conf/
41. Use parted to display disk geometry for /dev/hda and end up in shell
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
ServerName
parted /dev/hda print
42. What command starts the same menu as the text-mode First Boot process?
setsebool -P htttpd.enable.homedirs 1
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
setup
-i (do not use -U or -F!)
43. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
parted; mklabel k
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dumpe2fs
mke2fs
44. httpd ___ shows me what config files were installed when the httpd package was installed
-l
rpm -qc
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
telnetd : ALL EXCEPT 192.168.1.10
45. ____ is used for creating ext2 and ext3 file systems
dd if=./diskboot.img of=/dev/sdc
mke2fs
chkconfig vsftpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
46. 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 ____
ssh
rpm -e zip
dd if=./diskboot.img of=/dev/sdc
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
47. You can use the ____ tool after installation to add any package groups that you missed.
pirut
/var/ftp/pub
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
setsebool -P htttpd.enable.homedirs 1
48. 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)
e2fsadm
system-config-firewall
htpasswd -c /etc/httpd/webpass e
ServerAdmin
49. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
showmount -e
NameVirtualHost
filesystem type is not ext2 or ext3
showmount -a
50. ____ prints superblock and block group information.
setsebool -P squid_connect_any 1
fdisk
dumpe2fs
/etc/init.d/httpd restart