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. 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
telnetd : ALL EXCEPT 192.168.1.10
yum update kernel
AllowOverride
DocumentRoot
2. 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:
iptables
htpasswd -c /etc/httpd/webpass e
wget (http://devmon.dev.schwab.com/index.html)
Yes
3. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
tune2fs
yum install httpd
rpm -ivh --replacepkgs xxxx*
chkconfig --list httpd
4. 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.
setsebool -P htttpd.enable.homedirs 1
fdisk
NameVirtualHost
rpm -V
5. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
yum install mod_ssl squid
rpm -ivh --replacepkgs xxxx*
ServerTokens
6. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
pirut
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
setsebool -P squid_connect_any 1
showmount -e
7. What service is allowed through the default firewall?
rpm -V zip
ssh
chkconfig --list httpd
NameVirtualHost
8. Tthe file that might contain: oldvg - rootvg - etc.
parted; mklabel k
dd if=./diskboot.img of=/dev/sdc
/etc/lvmtab
iptables -F
9. How to start the vsftp service?
resize2fs
/etc/httpd/conf/
/etc/init.d/vsftpd start
ServerAdmin
10. This line placed in /etc/hosts.deny sends a customized error message for Telnet users on the crack.org domain saying sorry [insert client info] - access denied
LVM
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
/etc/lvmtab
11. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
select (followed by the device name such as /dev/hdb)
5
service vsftpd status
ServerAdmin
12. What is the first post installation step?
/etc/lvmtab
rpm -Va
First boot process
yum clean all
13. To install both mod_ssl and squid packages
yum -y update
yum install mod_ssl squid
yum install httpd
ServerTokens
14. Create a disk label for the partition table called k
parted; mklabel k
rpm -V
/etc/init.d/httpd restart
ServerName
15. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chkconfig vsftpd on
resize2fs /dev/myvg/homevol
yum update kernel
16. ____ prints superblock and block group information.
showmount -a
AllowOverride
dumpe2fs
iptables -F
17. Are SELinux and iptables-based firewalls are enabled by default?
ssh
Yes
ServerTokens
yum install httpd
18. How do you restart the apache web server?
iptables -F
/etc/init.d/httpd restart
lvextend -L4G /dev/rootvg/tmplv
dd if=./diskboot.img of=/dev/sdc
19. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
fdisk -l
filesystem type is not ext2 or ext3
var/ftp/pub
First boot process
20. httpd ___ shows me what config files were installed when the httpd package was installed
yum clean all
yum -y update
var/ftp/pub
rpm -qc
21. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
DocumentRoot
/etc/init.d/httpd restart
NameVirtualHost
wget (http://devmon.dev.schwab.com/index.html)
22. You can use the ____ tool after installation to add any package groups that you missed.
nfs
-i
pirut
5
23. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -e zip
fdisk -l
ErrorLog
/etc/squid/
24. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
setsebool -P htttpd.enable.homedirs 1
dd if=./diskboot.img of=/dev/sdc
25. 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 ____
service vsftpd status
elinks
ServerName
iptables -F
26. 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)
var/www/html
port 21
CustomLog
iptables -F
27. Run the ____ command to find the device associated with the USB key.
port 21
fdisk -l
/etc/squid/
rpm -qc
28. Perform a simple check of the file system. minor-num is x.
fdisk
parted; check x
/etc/init.d/vsftpd start
wget (http://devmon.dev.schwab.com/index.html)
29. 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
NameVirtualHost
yum -y update
ssh
30. _____ will change the size of /dev/rootvg/tmplv to 4 gig
htpasswd -c /etc/httpd/webpass e
lvextend -L4G /dev/rootvg/tmplv
chkconfig --list httpd
/etc/vsftpd
31. what port needs to be open to access ftp?
DocumentRoot
AllowOverride
port 21
fdisk -l
32. How to disable the firewall on the current system?
iptables -F
AllowOverride
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)
chkconfig --list httpd
33. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
squid -z
lvdisplay -D /dev/rootvg/tmplv
-i (do not use -U or -F!)
chmod 701
34. rpm ____ [name of package] to verify the package - once you have manually imported the key
ssh
setsebool -P squid_connect_any 1
-K
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
35. To list under which run levels the web service will start
/etc/init.d/vsftpd start
/ (root) - /boot and linux swap
chkconfig --list httpd
var/ftp/pub
36. 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 ____
ErrorLog
telnetd : ALL EXCEPT 192.168.1.10
DocumentRoot
rpm -e zip
37. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
ErrorLog
showmount -e
parted; mklabel k
38. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
rpm -qc
fdisk -l
setsebool -P squid_connect_any 1
parted; check x
39. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
iptables
(rpm -q)p file (for rpmfile name)
chkconfig --level 35 httpd on
/etc/lvmtab
40. Where is the config dir for vsftpd?
pirut
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/vsftpd
setup
41. Where to find the main apache config file?
rpm -qc
/etc/httpd/conf/
service vsftpd status
/etc/init.d/vsftpd start
42. ____ can expand and shrink ext2 and ext3 file systems
system-config-firewall
showmount -a
AllowOverride
resize2fs
43. '____ /var/www' will tell you the ACL settings of /var/www
e2fsadm
ls -Z
rpm -V
chcon -R -t httpd_sys_content_t /home/michael/public_html
44. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
lvdisplay -D /dev/rootvg/tmplv
dd if=./diskboot.img of=/dev/sdc
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
squid -z
45. 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)
iptables -F
e2fsadm
LVM
ServerTokens
46. Create the basic cache directories in /var/spool/squid with the following command:
chkconfig vsftpd on
/ (root) - /boot and linux swap
squid -z
rpm -V
47. What command starts the same menu as the text-mode First Boot process?
ssh
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
setup
48. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
Yes
select (followed by the device name such as /dev/hdb)
resize2fs /dev/myvg/homevol
setsebool -P htttpd.enable.homedirs 1
49. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
chmod 701
ls -Z
resize2fs /dev/myvg/homevol
yum install httpd
50. ____ is used to modify file system parameters
yum install vsftpd
tune2fs
parted; check x
-l