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 verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
dd if=./diskboot.img of=/dev/sdc
parted; check x
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk -l
2. What is the first post installation step?
parted; check x
yum install vsftpd
/etc/lvmtab
First boot process
3. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum clean all
yum install mod_ssl squid
-i
pirut
4. 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:
NameVirtualHost
/etc/squid/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ls -Z
5. 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
showmount -e
ServerTokens
grep '[.*]' server1.repo
rpm -V
6. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
/media/repodata
/etc/init.d/httpd start
dd if=./diskboot.img of=/dev/sdc
7. 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.
setsebool -P squid_connect_any 1
iptables -F
5
rpm -V
8. You need to configure firewalls and allow SELinux access in appropriate ways. Firewalls must allow access to the standard HTTP port - 80. SELinux must be configured to 'Allow HTTPD To Read Home Directories'. Finally - the ACL must be revised accordin
system-config-firewall
chcon -R -t httpd_sys_content_t /home/michael/public_html
parted; mklabel k
fdisk -l
9. To check status of ftp daemon
/etc/init.d/httpd restart
/etc/init.d/httpd start
service vsftpd status
ls -Z
10. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
rpm -Va
/etc/init.d/httpd restart
yum install httpd
11. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
telnetd : ALL EXCEPT 192.168.1.10
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
(rpm -q)p file (for rpmfile name)
filesystem type is not ext2 or ext3
12. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
ServerName
e2fsadm
/media/repodata
yum install mod_ssl squid
13. httpd ___ shows me what config files were installed when the httpd package was installed
dumpe2fs
htpasswd -c /etc/httpd/webpass e
rpm -qc
AllowOverride
14. rpm ____ verifies all installed rpms against the rpm database
5
showmount -e
iptables
rpm -Va
15. Where to find the main apache config file?
(rpm -q)p file (for rpmfile name)
/etc/httpd/conf/
showmount -a
rpm -V
16. 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
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
iptables
17. Tthe file that might contain: oldvg - rootvg - etc.
rpm -V
setup
/etc/lvmtab
var/ftp/pub
18. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
yum clean all
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
19. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
pirut
setsebool -P htttpd.enable.homedirs 1
chkconfig vsftpd on
20. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
select (followed by the device name such as /dev/hdb)
rpm -V
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ErrorLog
21. 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
CustomLog
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dd if=./diskboot.img of=/dev/sdc
chkconfig vsftpd on
22. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
mke2fs
nfs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
system-config-firewall
23. ____ is used for creating ext2 and ext3 file systems
/ (root) - /boot and linux swap
ServerName
mke2fs
LVM
24. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
yum update kernel
telnetd : ALL EXCEPT 192.168.1.10
chmod 705
25. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chkconfig vsftpd on
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)
26. rpm ____ verifies the installed zip rpm against the rpm database
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/vsftpd
rpm -V zip
tune2fs
27. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
NameVirtualHost
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install vsftpd
chmod 701
28. 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:
pirut
wget (http://devmon.dev.schwab.com/index.html)
/etc/init.d/vsftpd start
htpasswd -c /etc/httpd/webpass e
29. How to install vsftpd?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install mod_ssl squid
yum install vsftpd
First boot process
30. The rpm ____ option installs the package - if it isn't already installed.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ls -Z
/etc/init.d/vsftpd start
-i
31. Create the basic cache directories in /var/spool/squid with the following command:
fdisk -l
parted; check x
squid -z
dd if=./diskboot.img of=/dev/sdc
32. To install both mod_ssl and squid packages
rpm -Va
rpm -V
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
33. The simplest way to install Apache
rpm -V zip
yum -y update
yum install httpd
/var/ftp/pub
34. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ErrorLog
/etc/lvmtab
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 705
35. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
system-config-firewall
NameVirtualHost
ServerAdmin
htpasswd -c /etc/httpd/webpass e
36. '____ /var/www' will tell you the ACL settings of /var/www
chkconfig httpd on
telnetd : ALL EXCEPT 192.168.1.10
yum install httpd
ls -Z
37. Where is vsftpd.conf?
/etc/vsftpd
telnetd : ALL EXCEPT 192.168.1.10
ls -Z
chcon -R -t httpd_sys_content_t /home/michael/public_html
38. After you edit /etc/exports - run service ___ stop...
/etc/vsftpd
nfs
/etc/init.d/vsftpd start
resize2fs /dev/myvg/homevol
39. ____ configuration is not available via text mode RHEL installation.
LVM
dumpe2fs
CustomLog
chmod 705
40. 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
setsebool -P htttpd.enable.homedirs 1
yum update kernel
/etc/httpd/conf/
ls -Z
41. ____ is used to modify file system parameters
CustomLog
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
tune2fs
42. You can use the ____ tool after installation to add any package groups that you missed.
pirut
wget (http://devmon.dev.schwab.com/index.html)
rpm -qc
yum install httpd
43. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
/media/repodata
system-config-firewall
mke2fs
44. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
showmount -a
squid -z
fdisk
rpm -e zip
45. 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
chmod 701
fdisk -l
fdisk
46. 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
iptables
/etc/squid/
setup
47. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
rpm -Va
DocumentRoot
rpm -V zip
48. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
iptables -F
chkconfig httpd on
yum update kernel
filesystem type is not ext2 or ext3
49. 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:
ls -Z
setup
chkconfig httpd on
showmount -e
50. Where is the vsftp pub dir?
(rpm -q)p file (for rpmfile name)
/etc/init.d/httpd start
/var/ftp/pub
system-config-firewall