SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. ____ is used for creating ext2 and ext3 file systems
elinks
rpm -V zip
--import file
mke2fs
2. 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
setup
yum -y update
telnetd : ALL EXCEPT 192.168.1.10
nfs
3. Create a disk label for the partition table called k
mke2fs
ErrorLog
iptables -F
parted; mklabel k
4. 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
chmod 705
NameVirtualHost
ls -Z
ServerTokens
5. To install both mod_ssl and squid packages
yum install mod_ssl squid
var/ftp/pub
iptables -F
ls -Z
6. what utility can be used to open port 80?
chkconfig --level 35 httpd on
chkconfig --list httpd
mke2fs
system-config-firewall
7. ____ is used to modify file system parameters
showmount -a
yum install vsftpd
tune2fs
yum install mod_ssl squid
8. httpd ___ shows me what config files were installed when the httpd package was installed
setup
rpm -qc
First boot process
dd if=./diskboot.img of=/dev/sdc
9. 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:
parted /dev/hda print
parted; check x
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -e
10. ____ configuration is not available via text mode RHEL installation.
chkconfig vsftpd on
/ (root) - /boot and linux swap
LVM
rpm -qc
11. What command starts the same menu as the text-mode First Boot process?
wget (http://devmon.dev.schwab.com/index.html)
setup
AllowOverride
/etc/init.d/httpd restart
12. Where is the vsftp pub dir?
showmount -e
/var/ftp/pub
elinks
chcon -R -t httpd_sys_content_t /home/michael/public_html
13. What parts of rhel6 should be installed to separate volumes?
system-config-firewall
fdisk
/etc/squid/
/ (root) - /boot and linux swap
14. Where to find the main apache config file?
iptables -F
var/www/html
rpm -V
/etc/httpd/conf/
15. what port needs to be open to access ftp?
chkconfig httpd on
yum -y update
port 21
/media/repodata
16. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
port 21
lvdisplay -D /dev/rootvg/tmplv
AllowOverride
grep '[.*]' server1.repo
17. _____ will change the size of /dev/rootvg/tmplv to 4 gig
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
port 21
htpasswd -c /etc/httpd/webpass e
lvextend -L4G /dev/rootvg/tmplv
18. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
chkconfig httpd on
yum -y update
filesystem type is not ext2 or ext3
19. Virtual Host Configuration: Sets a root directory for the virtual host.
chkconfig --list httpd
/etc/vsftpd
DocumentRoot
dd if=./diskboot.img of=/dev/sdc
20. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
chkconfig --level 35 httpd on
5
/etc/vsftpd
setsebool -P htttpd.enable.homedirs 1
21. To check status of ftp daemon
service vsftpd status
ServerAdmin
rpm -Va
dumpe2fs
22. How to install apache?
-l
/etc/vsftpd
yum install httpd
AllowOverride
23. How to start apache service?
rpm -e zip
/etc/init.d/httpd start
ServerName
squid -z
24. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
fdisk -l
yum update kernel
ls -Z
25. ____ prints superblock and block group information.
ssh
wget (http://devmon.dev.schwab.com/index.html)
grep '[.*]' server1.repo
dumpe2fs
26. The main Squid configuration file is ____/squid.conf
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -a
/etc/squid/
yum update kernel
27. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
telnetd : ALL EXCEPT 192.168.1.10
NameVirtualHost
port 21
setsebool -P htttpd.enable.homedirs 1
28. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
/ (root) - /boot and linux swap
-l
e2fsadm
29. 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
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
/ (root) - /boot and linux swap
30. 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*
ErrorLog
select (followed by the device name such as /dev/hdb)
lvextend -L4G /dev/rootvg/tmplv
31. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
filesystem type is not ext2 or ext3
fdisk -l
fdisk
chmod 701
32. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
var/www/html
rpm -V
yum install vsftpd
33. ___ 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)
showmount -a
5
/boot
34. 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.
filesystem type is not ext2 or ext3
-i (do not use -U or -F!)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
35. You can use the ____ tool after installation to add any package groups that you missed.
(rpm -q)p file (for rpmfile name)
/etc/squid/
pirut
parted; check x
36. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
-K
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chkconfig --level 35 httpd on
37. Are SELinux and iptables-based firewalls are enabled by default?
chkconfig --list httpd
yum install vsftpd
Yes
yum install httpd
38. rpm option to show me the package files
--import file
/etc/httpd/conf/
ServerAdmin
-l
39. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
/etc/vsftpd
resize2fs /dev/myvg/homevol
showmount -a
rpm -e zip
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
yum update kernel
-i
ls -Z
rpm -qc
41. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
DocumentRoot
parted; mklabel k
setup
42. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
parted /dev/hda print
dd if=./diskboot.img of=/dev/sdc
/etc/vsftpd
yum install mod_ssl squid
43. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
yum clean all
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)
dd if=./diskboot.img of=/dev/sdc
44. Run the ____ command to find the device associated with the USB key.
NameVirtualHost
fdisk -l
parted /dev/hda print
ssh
45. If in doubt about package names - you can find them in the ...
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)
fdisk -l
rpm -V
--import file
46. 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
Yes
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/vsftpd start
setsebool -P squid_connect_any 1
47. 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)
ServerTokens
rpm -Va
CustomLog
fdisk -l
48. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
showmount -a
lvdisplay -D /dev/rootvg/tmplv
/var/ftp/pub
49. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
/etc/init.d/httpd start
squid -z
select (followed by the device name such as /dev/hdb)
system-config-firewall
50. 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.
showmount -a
chmod 705
setsebool -P squid_connect_any 1
iptables -F