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. How to start apache service?
/etc/httpd/conf/
fdisk -l
/etc/init.d/httpd start
setup
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
select (followed by the device name such as /dev/hdb)
rpm -V zip
resize2fs
telnetd : ALL EXCEPT 192.168.1.10
3. Virtual Host Configuration: Sets a root directory for the virtual host.
DocumentRoot
dumpe2fs
ServerName
--import file
4. 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
iptables -F
yum clean all
-i (do not use -U or -F!)
yum update kernel
5. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
nfs
chmod 705
ErrorLog
First boot process
6. 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 ____
elinks
iptables
var/www/html
Yes
7. Create a disk label for the partition table called k
parted; mklabel k
showmount -a
yum update kernel
yum clean all
8. For linux ext2 there is an easier way than using resize2fs. LVM 1 ships with a utility called __________ which does the lvextend and resize2fs for you (it can also do file system shrinking)
tune2fs
dumpe2fs
resize2fs
e2fsadm
9. rpm ____ to install kernel updates
/etc/lvmtab
yum clean all
-i (do not use -U or -F!)
showmount -a
10. How to disable the firewall on the current system?
/etc/vsftpd
yum install vsftpd
iptables -F
fdisk -l
11. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
parted; check x
dd if=./diskboot.img of=/dev/sdc
First boot process
chkconfig --list httpd
12. 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.
rpm -V
fdisk -l
LVM
nfs
13. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
pirut
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-l
filesystem type is not ext2 or ext3
14. Where is the config dir for vsftpd?
/etc/vsftpd
dd if=./diskboot.img of=/dev/sdc
/etc/init.d/httpd start
chkconfig httpd on
15. ____ prints superblock and block group information.
service vsftpd status
/etc/vsftpd
parted; check x
dumpe2fs
16. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
grep '[.*]' server1.repo
/var/ftp/pub
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
squid -z
17. Virtual Host Configuration: Names the URL for the virtual host.
chkconfig --list httpd
ServerName
lvextend -L4G /dev/rootvg/tmplv
select (followed by the device name such as /dev/hdb)
18. How to install apache?
yum -y update
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install httpd
19. httpd ___ shows me what config files were installed when the httpd package was installed
chkconfig httpd on
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -qc
setup
20. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
ServerName
chkconfig httpd on
lvdisplay -D /dev/rootvg/tmplv
chmod 705
21. 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
htpasswd -c /etc/httpd/webpass e
rpm -V zip
AllowOverride
showmount -e
22. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chkconfig httpd on
setsebool -P htttpd.enable.homedirs 1
rpm -ivh --replacepkgs xxxx*
htpasswd -c /etc/httpd/webpass e
23. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
/etc/lvmtab
yum -y update
CustomLog
24. How to install vsftpd?
service vsftpd status
yum install vsftpd
nfs
rpm -e zip
25. Run the ____ command to find the device associated with the USB key.
rpm -ivh --replacepkgs xxxx*
/etc/lvmtab
fdisk -l
Yes
26. 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
yum install mod_ssl squid
rpm -Va
AllowOverride
chcon -R -t httpd_sys_content_t /home/michael/public_html
27. What service is allowed through the default firewall?
telnetd : ALL EXCEPT 192.168.1.10
Yes
ssh
yum install httpd
28. _____ will change the size of /dev/rootvg/tmplv to 4 gig
pirut
/etc/lvmtab
lvextend -L4G /dev/rootvg/tmplv
rpm -V zip
29. 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
iptables
CustomLog
chkconfig --list httpd
ssh
30. Are SELinux and iptables-based firewalls are enabled by default?
/media/repodata
Yes
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
rpm -ivh --replacepkgs xxxx*
31. rpm ____ to import the rpm key for integrity checking
resize2fs /dev/myvg/homevol
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
--import file
/etc/init.d/httpd start
32. How to make sure apache starts automatically on next reboot?
rpm -V zip
chkconfig httpd on
yum install httpd
-i
33. How to start the vsftp service?
ErrorLog
pirut
(rpm -q)p file (for rpmfile name)
/etc/init.d/vsftpd start
34. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
Yes
5
-l
rpm -V
35. 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:
ErrorLog
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/init.d/vsftpd start
ServerTokens
36. What command starts the same menu as the text-mode First Boot process?
resize2fs
rpm -V
setup
chmod 701
37. ____ is used to modify file system parameters
chkconfig httpd on
tune2fs
grep '[.*]' server1.repo
/boot
38. I just ran rpm -ivh zip-2.3-8.i386.rpm .. whooops - now I don't want this on my system so to get it off via rpm I type ____
ServerName
rpm -e zip
ErrorLog
/media/repodata
39. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
/etc/init.d/vsftpd start
parted; check x
ServerName
fdisk
40. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
/etc/init.d/httpd start
e2fsadm
chkconfig httpd on
41. ___ 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)
(rpm -q)p file (for rpmfile name)
iptables -F
lvextend -L4G /dev/rootvg/tmplv
42. 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
-K
htpasswd -c /etc/httpd/webpass e
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
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)
43. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
yum clean all
Yes
lvextend -L4G /dev/rootvg/tmplv
44. The main Squid configuration file is ____/squid.conf
setsebool -P squid_connect_any 1
/etc/squid/
dd if=./diskboot.img of=/dev/sdc
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)
45. 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)
CustomLog
pirut
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
46. To list under which run levels the web service will start
yum clean all
NameVirtualHost
chkconfig --list httpd
chkconfig httpd on
47. The rpm ____ option installs the package - if it isn't already installed.
chmod 705
LVM
-i
var/www/html
48. 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)
ssh
iptables -F
chcon -R -t httpd_sys_content_t /home/michael/public_html
49. 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
/boot
ServerAdmin
port 21
AllowOverride
50. The simplest way to install Apache
elinks
tune2fs
pirut
yum install httpd