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. What parts of rhel6 should be installed to separate volumes?
var/www/html
ssh
/ (root) - /boot and linux swap
/etc/init.d/httpd start
2. How to start the vsftp service?
rpm -Va
/etc/init.d/vsftpd start
port 21
DocumentRoot
3. How to make sure apache starts automatically on next reboot?
iptables -F
chkconfig httpd on
/etc/init.d/vsftpd start
yum install httpd
4. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
yum install httpd
yum -y update
rpm -Va
ServerAdmin
5. 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)
grep '[.*]' server1.repo
dd if=./diskboot.img of=/dev/sdc
chkconfig --level 35 httpd on
CustomLog
6. How to start the vsftp service automatically on boot?
CustomLog
/etc/vsftpd
(rpm -q)p file (for rpmfile name)
chkconfig vsftpd on
7. 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
ServerAdmin
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/squid/
/boot
8. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm -V
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
NameVirtualHost
Yes
9. Use grep to count how many repositories have been configured in the file server1.repo
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
10. 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
telnetd : ALL EXCEPT 192.168.1.10
service vsftpd status
ServerName
port 21
11. Run the ____ command to find the device associated with the USB key.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
ls -Z
var/www/html
12. 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 ____
ServerAdmin
ls -Z
elinks
setup
13. ____ prints superblock and block group information.
dumpe2fs
select (followed by the device name such as /dev/hdb)
system-config-firewall
ServerName
14. How to install vsftpd?
LVM
DocumentRoot
chmod 701
yum install vsftpd
15. rpm option to show me the package files
-l
chkconfig httpd on
parted; check x
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
16. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
-i (do not use -U or -F!)
/etc/init.d/httpd start
AllowOverride
17. Where is the config dir for vsftpd?
pirut
/etc/vsftpd
system-config-firewall
LVM
18. Where is the main apache data directory?
--import file
rpm -V zip
rpm -Va
var/www/html
19. 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
nfs
/etc/httpd/conf/
iptables
DocumentRoot
20. 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
/ (root) - /boot and linux swap
fdisk -l
5
21. Create the basic cache directories in /var/spool/squid with the following command:
parted; check x
ServerTokens
yum install vsftpd
squid -z
22. rpm ____ to import the rpm key for integrity checking
--import file
squid -z
tune2fs
parted; check x
23. 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:
fdisk -l
htpasswd -c /etc/httpd/webpass e
CustomLog
showmount -a
24. After you edit /etc/exports - run service ___ stop...
yum -y update
nfs
/etc/squid/
/etc/vsftpd
25. 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
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
dd if=./diskboot.img of=/dev/sdc
parted; mklabel k
26. The simplest way to install Apache
/etc/vsftpd
telnetd : ALL EXCEPT 192.168.1.10
yum install httpd
/var/ftp/pub
27. Where is vsftpd.conf?
/etc/vsftpd
wget (http://devmon.dev.schwab.com/index.html)
-i (do not use -U or -F!)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
28. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
htpasswd -c /etc/httpd/webpass e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
dd if=./diskboot.img of=/dev/sdc
29. Where is the vsftp pub dir?
(rpm -q)p file (for rpmfile name)
setsebool -P htttpd.enable.homedirs 1
pirut
/var/ftp/pub
30. httpd ___ shows me what config files were installed when the httpd package was installed
htpasswd -c /etc/httpd/webpass e
yum install vsftpd
chkconfig --level 35 httpd on
rpm -qc
31. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
/media/repodata
5
-K
parted; mklabel k
32. rpm ____ verifies the installed zip rpm against the rpm database
ServerName
rpm -V zip
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install mod_ssl squid
33. 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.
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/httpd start
iptables -F
ServerName
34. rpm ____ verifies all installed rpms against the rpm database
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
showmount -e
rpm -Va
35. 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
select (followed by the device name such as /dev/hdb)
CustomLog
iptables -F
setsebool -P squid_connect_any 1
36. what port needs to be open to access ftp?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
port 21
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
37. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
/media/repodata
iptables
var/ftp/pub
38. 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/
iptables -F
setsebool -P squid_connect_any 1
dd if=./diskboot.img of=/dev/sdc
39. How to disable the firewall on the current system?
ErrorLog
rpm -ivh --replacepkgs xxxx*
iptables -F
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
40. Perform a simple check of the file system. minor-num is x.
filesystem type is not ext2 or ext3
5
parted; check x
NameVirtualHost
41. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
-K
wget (http://devmon.dev.schwab.com/index.html)
LVM
42. ____ is used for creating ext2 and ext3 file systems
mke2fs
chmod 701
/etc/init.d/httpd restart
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
43. Apache supports security by specifying active ports through the Listen and ____ directives.
yum clean all
/etc/init.d/httpd start
NameVirtualHost
var/ftp/pub
44. How do you restart the apache web server?
resize2fs
/etc/init.d/httpd restart
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
45. To install both mod_ssl and squid packages
wget (http://devmon.dev.schwab.com/index.html)
resize2fs
yum install mod_ssl squid
rpm -V
46. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
chcon -R -t httpd_sys_content_t /home/michael/public_html
/ (root) - /boot and linux swap
/etc/vsftpd
47. Tthe file that might contain: oldvg - rootvg - etc.
yum update kernel
/etc/lvmtab
yum install httpd
rpm -V
48. what utility can be used to open port 80?
/etc/squid/
ServerAdmin
system-config-firewall
select (followed by the device name such as /dev/hdb)
49. ____ configuration is not available via text mode RHEL installation.
LVM
ssh
chkconfig --list httpd
var/www/html
50. The main Squid configuration file is ____/squid.conf
-K
ServerAdmin
yum install httpd
/etc/squid/