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. Where is vsftpd.conf?
/var/ftp/pub
filesystem type is not ext2 or ext3
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/vsftpd
2. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
resize2fs
parted; check x
chmod 701
3. How to install vsftpd?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
select (followed by the device name such as /dev/hdb)
yum install vsftpd
lvextend -L4G /dev/rootvg/tmplv
4. what utility can be used to open port 80?
system-config-firewall
yum -y update
ssh
setsebool -P squid_connect_any 1
5. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
rpm -V
dd if=./diskboot.img of=/dev/sdc
lvextend -L4G /dev/rootvg/tmplv
/etc/vsftpd
6. 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
/etc/httpd/conf/
AllowOverride
/etc/init.d/httpd restart
select (followed by the device name such as /dev/hdb)
7. rpm option to show me the package files
-l
ServerTokens
yum install httpd
pirut
8. What is the standard directory for file sharing with vsFTP?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --list httpd
iptables -F
var/ftp/pub
9. 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
AllowOverride
/etc/vsftpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
ssh
10. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
-i (do not use -U or -F!)
telnetd : ALL EXCEPT 192.168.1.10
parted; mklabel k
/boot
11. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
First boot process
filesystem type is not ext2 or ext3
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
telnetd : ALL EXCEPT 192.168.1.10
12. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
yum -y update
htpasswd -c /etc/httpd/webpass e
13. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -t httpd_sys_content_t /home/michael/public_html
/var/ftp/pub
14. The simplest way to install Apache
var/ftp/pub
yum install httpd
system-config-firewall
fdisk -l
15. 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:
setsebool -P htttpd.enable.homedirs 1
htpasswd -c /etc/httpd/webpass e
system-config-firewall
setsebool -P squid_connect_any 1
16. _____ will change the size of /dev/rootvg/tmplv to 4 gig
rpm -Va
lvextend -L4G /dev/rootvg/tmplv
/etc/httpd/conf/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
17. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
--import file
/media/repodata
e2fsadm
yum -y update
18. 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.
ErrorLog
lvextend -L4G /dev/rootvg/tmplv
iptables -F
port 21
19. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
iptables
lvextend -L4G /dev/rootvg/tmplv
nfs
20. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
wget (http://devmon.dev.schwab.com/index.html)
/media/repodata
ls -Z
21. To install both mod_ssl and squid packages
yum install mod_ssl squid
setsebool -P htttpd.enable.homedirs 1
e2fsadm
mke2fs
22. rpm ____ [name of package] to verify the package - once you have manually imported the key
parted /dev/hda print
rpm -V
parted; check x
-K
23. What service is allowed through the default firewall?
ssh
/media/repodata
CustomLog
/etc/vsftpd
24. The rpm ____ option installs the package - if it isn't already installed.
-i
ServerName
iptables
resize2fs /dev/myvg/homevol
25. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
chkconfig httpd on
yum install mod_ssl squid
/etc/httpd/conf/
26. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
chkconfig --list httpd
rpm -qc
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
27. Create the basic cache directories in /var/spool/squid with the following command:
--import file
/etc/vsftpd
squid -z
/var/ftp/pub
28. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
resize2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk
chkconfig --level 35 httpd on
29. pam ___ will tell me if any files in the pam package have changed since it was first installed
var/www/html
rpm -V
First boot process
/etc/httpd/conf/
30. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
yum install mod_ssl squid
rpm -V
ServerAdmin
31. rpm ____ verifies all installed rpms against the rpm database
system-config-firewall
rpm -Va
setsebool -P htttpd.enable.homedirs 1
5
32. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
service vsftpd status
lvextend -L4G /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
port 21
33. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
fdisk
select (followed by the device name such as /dev/hdb)
htpasswd -c /etc/httpd/webpass e
tune2fs
34. Virtual Host Configuration: Names the URL for the virtual host.
iptables
-i
ServerName
-l
35. Apache supports security by specifying active ports through the Listen and ____ directives.
grep '[.*]' server1.repo
NameVirtualHost
htpasswd -c /etc/httpd/webpass e
yum install httpd
36. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
chmod 701
parted; mklabel k
parted; check x
37. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
/etc/squid/
/var/ftp/pub
ErrorLog
/etc/httpd/conf/
38. How to install apache?
chkconfig vsftpd on
yum install httpd
rpm -qc
/etc/vsftpd
39. How do you restart the apache web server?
iptables -F
showmount -e
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
40. 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 ____
setsebool -P htttpd.enable.homedirs 1
ErrorLog
elinks
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
41. Virtual Host Configuration: Sets a root directory for the virtual host.
chmod 701
yum install httpd
elinks
DocumentRoot
42. Tthe file that might contain: oldvg - rootvg - etc.
showmount -e
filesystem type is not ext2 or ext3
parted; mklabel k
/etc/lvmtab
43. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
showmount -e
resize2fs /dev/myvg/homevol
Yes
ErrorLog
44. After you edit /etc/exports - run service ___ stop...
resize2fs /dev/myvg/homevol
nfs
ssh
(rpm -q)p file (for rpmfile name)
45. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
yum install httpd
5
setsebool -P htttpd.enable.homedirs 1
dd if=./diskboot.img of=/dev/sdc
46. ____ configuration is not available via text mode RHEL installation.
grep '[.*]' server1.repo
LVM
/etc/squid/
resize2fs /dev/myvg/homevol
47. rpm ____ to install kernel updates
/etc/squid/
LVM
tune2fs
-i (do not use -U or -F!)
48. Create a disk label for the partition table called k
/etc/vsftpd
chkconfig --list httpd
parted; mklabel k
DocumentRoot
49. Perform a simple check of the file system. minor-num is x.
filesystem type is not ext2 or ext3
dumpe2fs
yum -y update
parted; check x
50. '____ /var/www' will tell you the ACL settings of /var/www
iptables -F
yum clean all
ls -Z
fdisk -l