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. 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
2. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
setsebool -P squid_connect_any 1
(rpm -q)p file (for rpmfile name)
iptables -F
service vsftpd status
3. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
ServerName
select (followed by the device name such as /dev/hdb)
showmount -e
chkconfig vsftpd on
4. What is the first post installation step?
pirut
var/ftp/pub
First boot process
Yes
5. How to install vsftpd?
filesystem type is not ext2 or ext3
yum install vsftpd
nfs
port 21
6. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
NameVirtualHost
Yes
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-i
7. Use parted to display disk geometry for /dev/hda and end up in shell
/etc/init.d/vsftpd start
chcon -R -t httpd_sys_content_t /home/michael/public_html
htpasswd -c /etc/httpd/webpass e
parted /dev/hda print
8. After you edit /etc/exports - run service ___ stop...
/etc/vsftpd
nfs
/boot
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
9. Where is the vsftp pub dir?
/var/ftp/pub
/etc/lvmtab
CustomLog
iptables
10. what utility can be used to open port 80?
setup
First boot process
system-config-firewall
CustomLog
11. How to start apache service?
/etc/init.d/httpd start
yum install httpd
-K
rpm -V
12. Are SELinux and iptables-based firewalls are enabled by default?
iptables -F
chkconfig --level 35 httpd on
ls -Z
Yes
13. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
lvdisplay -D /dev/rootvg/tmplv
var/www/html
chmod 701
14. Where is the config dir for vsftpd?
/etc/squid/
Yes
/etc/vsftpd
dd if=./diskboot.img of=/dev/sdc
15. The rpm ____ option installs the package - if it isn't already installed.
setsebool -P squid_connect_any 1
chkconfig vsftpd on
NameVirtualHost
-i
16. 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.
fdisk -l
5
rpm -V
setsebool -P htttpd.enable.homedirs 1
17. 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
nfs
grep '[.*]' server1.repo
CustomLog
chcon -R -t httpd_sys_content_t /home/michael/public_html
18. You can use the ____ tool after installation to add any package groups that you missed.
chkconfig vsftpd on
pirut
showmount -a
-i (do not use -U or -F!)
19. 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
DocumentRoot
dumpe2fs
yum update kernel
yum clean all
20. rpm ____ verifies the installed zip rpm against the rpm database
yum install mod_ssl squid
LVM
rpm -V zip
dd if=./diskboot.img of=/dev/sdc
21. Run the ____ command to find the device associated with the USB key.
/boot
LVM
fdisk -l
pirut
22. 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 ____
e2fsadm
elinks
/etc/init.d/httpd restart
wget (http://devmon.dev.schwab.com/index.html)
23. 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
telnetd : ALL EXCEPT 192.168.1.10
parted; check x
First boot process
AllowOverride
24. Where is the main apache data directory?
var/www/html
5
iptables -F
pirut
25. Perform a simple check of the file system. minor-num is x.
chmod 705
iptables -F
ServerName
parted; check x
26. 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
ServerTokens
AllowOverride
/boot
-i (do not use -U or -F!)
27. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
/boot
wget (http://devmon.dev.schwab.com/index.html)
select (followed by the device name such as /dev/hdb)
28. Tthe file that might contain: oldvg - rootvg - etc.
fdisk -l
rpm -V
var/ftp/pub
/etc/lvmtab
29. 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.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -F
LVM
rpm -V zip
30. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
setup
tune2fs
resize2fs /dev/myvg/homevol
31. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
wget (http://devmon.dev.schwab.com/index.html)
var/www/html
squid -z
32. httpd ___ shows me what config files were installed when the httpd package was installed
/var/ftp/pub
-i (do not use -U or -F!)
/etc/init.d/httpd start
rpm -qc
33. rpm ____ to import the rpm key for integrity checking
First boot process
iptables -F
-i (do not use -U or -F!)
--import file
34. '____ /var/www' will tell you the ACL settings of /var/www
yum install mod_ssl squid
ServerName
yum clean all
ls -Z
35. 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:
chkconfig vsftpd on
mke2fs
htpasswd -c /etc/httpd/webpass e
yum -y update
36. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
NameVirtualHost
showmount -a
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
service vsftpd status
37. 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
ls -Z
iptables -F
nfs
38. What service is allowed through the default firewall?
ssh
nfs
rpm -V
yum install mod_ssl squid
39. 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:
lvextend -L4G /dev/rootvg/tmplv
showmount -e
resize2fs /dev/myvg/homevol
var/ftp/pub
40. Virtual Host Configuration: Sets a root directory for the virtual host.
iptables -F
-K
select (followed by the device name such as /dev/hdb)
DocumentRoot
41. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
parted; check x
ErrorLog
chkconfig vsftpd on
/etc/vsftpd
42. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
DocumentRoot
/ (root) - /boot and linux swap
showmount -a
43. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
/etc/lvmtab
fdisk
/etc/vsftpd
htpasswd -c /etc/httpd/webpass e
44. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chkconfig httpd on
/etc/vsftpd
wget (http://devmon.dev.schwab.com/index.html)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
45. To check status of ftp daemon
parted /dev/hda print
/boot
service vsftpd status
/etc/init.d/httpd restart
46. ____ configuration is not available via text mode RHEL installation.
AllowOverride
LVM
NameVirtualHost
chmod 705
47. Where is vsftpd.conf?
filesystem type is not ext2 or ext3
rpm -V
/etc/vsftpd
/etc/init.d/httpd restart
48. what port needs to be open to access ftp?
showmount -a
chkconfig httpd on
port 21
yum clean all
49. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
resize2fs /dev/myvg/homevol
/media/repodata
DocumentRoot
showmount -a
50. rpm ____ to install kernel updates
AllowOverride
rpm -V
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)