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. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
var/ftp/pub
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
select (followed by the device name such as /dev/hdb)
iptables
2. How do you restart the apache web server?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
AllowOverride
iptables
/etc/init.d/httpd restart
3. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
yum install httpd
lvdisplay -D /dev/rootvg/tmplv
filesystem type is not ext2 or ext3
nfs
4. Where to find the main apache config file?
select (followed by the device name such as /dev/hdb)
/etc/httpd/conf/
rpm -ivh --replacepkgs xxxx*
tune2fs
5. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
fdisk -l
iptables -F
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)
6. How to install vsftpd?
resize2fs /dev/myvg/homevol
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install vsftpd
DocumentRoot
7. 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 ____
yum clean all
rpm -e zip
yum -y update
system-config-firewall
8. 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)
iptables
-K
CustomLog
parted; check x
9. 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.
grep '[.*]' server1.repo
iptables -F
rpm -ivh --replacepkgs xxxx*
yum clean all
10. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
/etc/squid/
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
system-config-firewall
11. 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
var/ftp/pub
DocumentRoot
yum update kernel
yum install httpd
12. To install both mod_ssl and squid packages
fdisk -l
yum install httpd
ls -Z
yum install mod_ssl squid
13. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update
/media/repodata
ServerAdmin
14. 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.
-l
yum install vsftpd
htpasswd -c /etc/httpd/webpass e
rpm -V
15. 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
16. pam ___ will tell me if any files in the pam package have changed since it was first installed
filesystem type is not ext2 or ext3
dumpe2fs
rpm -V
mke2fs
17. Where is the config dir for vsftpd?
var/ftp/pub
setup
ssh
/etc/vsftpd
18. How to install apache?
chkconfig httpd on
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)
wget (http://devmon.dev.schwab.com/index.html)
yum install httpd
19. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
lvdisplay -D /dev/rootvg/tmplv
yum install vsftpd
-i (do not use -U or -F!)
20. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
yum install httpd
parted /dev/hda print
rpm -Va
yum clean all
21. If in doubt about package names - you can find them in the ...
rpm -V
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)
yum install httpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
22. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig httpd on
rpm -V zip
chkconfig --level 35 httpd on
yum install httpd
23. What service is allowed through the default firewall?
parted; mklabel k
CustomLog
ErrorLog
ssh
24. Perform a simple check of the file system. minor-num is x.
resize2fs
lvdisplay -D /dev/rootvg/tmplv
parted; check x
fdisk -l
25. 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 ____
yum install httpd
elinks
ServerName
grep '[.*]' server1.repo
26. To check status of ftp daemon
resize2fs
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
5
service vsftpd status
27. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
grep '[.*]' server1.repo
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)
ErrorLog
pirut
28. How to start apache service?
grep '[.*]' server1.repo
yum update kernel
/etc/init.d/httpd start
/media/repodata
29. After you edit /etc/exports - run service ___ stop...
rpm -V zip
nfs
ServerName
-K
30. what port needs to be open to access ftp?
filesystem type is not ext2 or ext3
port 21
chcon -R -t httpd_sys_content_t /home/michael/public_html
dd if=./diskboot.img of=/dev/sdc
31. Tthe file that might contain: oldvg - rootvg - etc.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/lvmtab
5
32. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
squid -z
rpm -ivh --replacepkgs xxxx*
ssh
grep '[.*]' server1.repo
33. 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
grep '[.*]' server1.repo
ServerTokens
yum install httpd
chmod 705
34. The rpm ____ option installs the package - if it isn't already installed.
-i
chcon -R -t httpd_sys_content_t /home/michael/public_html
lvextend -L4G /dev/rootvg/tmplv
yum install vsftpd
35. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
rpm -V zip
resize2fs /dev/myvg/homevol
nfs
resize2fs
36. 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
parted; mklabel k
parted; check x
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
37. How to disable the firewall on the current system?
iptables -F
yum clean all
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
38. Virtual Host Configuration: Sets a root directory for the virtual host.
chmod 701
filesystem type is not ext2 or ext3
DocumentRoot
rpm -V zip
39. ____ configuration is not available via text mode RHEL installation.
yum clean all
-i (do not use -U or -F!)
LVM
chcon -R -t httpd_sys_content_t /home/michael/public_html
40. 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:
select (followed by the device name such as /dev/hdb)
lvextend -L4G /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
ssh
41. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
var/ftp/pub
NameVirtualHost
rpm -V
iptables -F
42. Apache supports security by specifying active ports through the Listen and ____ directives.
yum -y update
NameVirtualHost
Yes
chkconfig httpd on
43. ____ can expand and shrink ext2 and ext3 file systems
yum update kernel
resize2fs
/boot
setsebool -P htttpd.enable.homedirs 1
44. Are SELinux and iptables-based firewalls are enabled by default?
Yes
showmount -a
--import file
ServerTokens
45. 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
yum install httpd
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk
46. rpm ____ to install kernel updates
nfs
rpm -e zip
pirut
-i (do not use -U or -F!)
47. What parts of rhel6 should be installed to separate volumes?
showmount -e
/ (root) - /boot and linux swap
grep '[.*]' server1.repo
showmount -a
48. 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:
iptables -F
ErrorLog
fdisk -l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
49. ____ is used to modify file system parameters
showmount -e
tune2fs
service vsftpd status
port 21
50. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
-i
setup
dd if=./diskboot.img of=/dev/sdc
yum install httpd