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. Virtual Host Configuration: Sets a root directory for the virtual host.
5
DocumentRoot
-l
parted; check x
2. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
ErrorLog
tune2fs
rpm -ivh --replacepkgs xxxx*
3. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chkconfig vsftpd on
lvdisplay -D /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
4. rpm ____ [name of package] to verify the package - once you have manually imported the key
iptables
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/var/ftp/pub
-K
5. 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)
parted; check x
yum install httpd
lvdisplay -D /dev/rootvg/tmplv
e2fsadm
6. rpm option to show me the package files
rpm -V zip
chkconfig vsftpd on
-l
rpm -V
7. How to install vsftpd?
squid -z
ServerName
select (followed by the device name such as /dev/hdb)
yum install vsftpd
8. 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:
var/www/html
showmount -e
yum clean all
setup
9. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
htpasswd -c /etc/httpd/webpass e
dumpe2fs
chmod 701
10. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
dd if=./diskboot.img of=/dev/sdc
iptables -F
/etc/squid/
chcon -R -t httpd_sys_content_t /home/michael/public_html
11. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
-i (do not use -U or -F!)
elinks
chkconfig --level 35 httpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
12. What service is allowed through the default firewall?
resize2fs
ssh
NameVirtualHost
yum install httpd
13. 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
parted; mklabel k
/etc/httpd/conf/
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
14. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
chkconfig httpd on
fdisk -l
chkconfig --level 35 httpd on
15. Where is the config dir for vsftpd?
ErrorLog
/etc/vsftpd
rpm -V zip
setup
16. Tthe file that might contain: oldvg - rootvg - etc.
ServerTokens
mke2fs
/etc/lvmtab
resize2fs
17. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
var/ftp/pub
service vsftpd status
filesystem type is not ext2 or ext3
LVM
18. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
NameVirtualHost
fdisk
squid -z
/etc/httpd/conf/
19. 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.
rpm -e zip
iptables -F
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
20. How to start the vsftp service?
chkconfig --level 35 httpd on
chkconfig vsftpd on
chmod 701
/etc/init.d/vsftpd start
21. 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
parted; mklabel k
-i
telnetd : ALL EXCEPT 192.168.1.10
chkconfig httpd on
22. What command starts the same menu as the text-mode First Boot process?
yum clean all
parted /dev/hda print
setup
fdisk -l
23. 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
yum update kernel
var/www/html
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
e2fsadm
24. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/squid/
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
25. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
var/ftp/pub
setsebool -P htttpd.enable.homedirs 1
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -a
26. If in doubt about package names - you can find them in the ...
DocumentRoot
AllowOverride
ls -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)
27. 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)
ssh
chmod 705
CustomLog
fdisk -l
28. Are SELinux and iptables-based firewalls are enabled by default?
/etc/init.d/httpd start
Yes
lvdisplay -D /dev/rootvg/tmplv
chkconfig httpd on
29. The rpm ____ option installs the package - if it isn't already installed.
-i
rpm -qc
yum install mod_ssl squid
htpasswd -c /etc/httpd/webpass e
30. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
parted /dev/hda print
chkconfig httpd on
5
31. ____ is used to modify file system parameters
tune2fs
dumpe2fs
service vsftpd status
chcon -R -t httpd_sys_content_t /home/michael/public_html
32. what port needs to be open to access ftp?
rpm -qc
rpm -V
port 21
chkconfig httpd on
33. Virtual Host Configuration: Names the URL for the virtual host.
rpm -V
ServerName
NameVirtualHost
parted /dev/hda print
34. 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 httpd
ServerAdmin
ServerTokens
tune2fs
35. How to make sure apache starts automatically on next reboot?
setsebool -P htttpd.enable.homedirs 1
resize2fs
chkconfig httpd on
select (followed by the device name such as /dev/hdb)
36. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
tune2fs
parted; mklabel k
lvdisplay -D /dev/rootvg/tmplv
/etc/vsftpd
37. Where is the vsftp pub dir?
nfs
/ (root) - /boot and linux swap
/var/ftp/pub
elinks
38. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
--import file
rpm -ivh --replacepkgs xxxx*
e2fsadm
select (followed by the device name such as /dev/hdb)
39. How do you restart the apache web server?
Yes
nfs
ls -Z
/etc/init.d/httpd restart
40. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
/etc/init.d/vsftpd start
iptables -F
-l
41. _____ will change the size of /dev/rootvg/tmplv to 4 gig
showmount -e
5
lvextend -L4G /dev/rootvg/tmplv
port 21
42. ____ prints superblock and block group information.
dumpe2fs
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs
rpm -qc
43. If you want to create a database file named webpass in the /etc/httpd directory - for user 'e' - you'd start with the following command:
rpm -V
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -a
htpasswd -c /etc/httpd/webpass e
44. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
rpm -V
setsebool -P htttpd.enable.homedirs 1
DocumentRoot
-K
45. ____ configuration is not available via text mode RHEL installation.
pirut
LVM
-K
-l
46. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
/media/repodata
setup
chkconfig vsftpd on
47. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
/boot
NameVirtualHost
Yes
48. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
parted /dev/hda print
rpm -e zip
(rpm -q)p file (for rpmfile name)
yum -y update
49. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
select (followed by the device name such as /dev/hdb)
rpm -ivh --replacepkgs xxxx*
parted; mklabel k
squid -z
50. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
var/ftp/pub
wget (http://devmon.dev.schwab.com/index.html)
rpm -qc
chkconfig --level 35 httpd on