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. ____ configuration is not available via text mode RHEL installation.
chkconfig httpd on
LVM
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
2. 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 -F
-l
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
First boot process
3. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
nfs
filesystem type is not ext2 or ext3
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
4. ____ prints superblock and block group information.
dumpe2fs
elinks
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
5. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
-i
ErrorLog
6. rpm ____ verifies all installed rpms against the rpm database
yum -y update
nfs
mke2fs
rpm -Va
7. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
resize2fs
DocumentRoot
e2fsadm
ErrorLog
8. 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
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install httpd
rpm -e zip
telnetd : ALL EXCEPT 192.168.1.10
9. 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
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install mod_ssl squid
yum install vsftpd
10. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
resize2fs /dev/myvg/homevol
port 21
CustomLog
11. ____ is used to modify file system parameters
tune2fs
/ (root) - /boot and linux swap
rpm -qc
var/www/html
12. 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)
chmod 701
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ssh
13. To check status of ftp daemon
--import file
service vsftpd status
grep '[.*]' server1.repo
showmount -e
14. 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
setup
ServerTokens
/etc/squid/
ServerAdmin
15. what utility can be used to open port 80?
system-config-firewall
/etc/httpd/conf/
/etc/squid/
/etc/init.d/vsftpd start
16. How to start the vsftp service?
pirut
telnetd : ALL EXCEPT 192.168.1.10
parted; check x
/etc/init.d/vsftpd start
17. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum update kernel
AllowOverride
18. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
yum install vsftpd
chmod 705
-l
parted; mklabel k
19. The main Squid configuration file is ____/squid.conf
yum clean all
/boot
/etc/squid/
pirut
20. 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:
-i (do not use -U or -F!)
yum clean all
chkconfig --level 35 httpd on
htpasswd -c /etc/httpd/webpass e
21. How to start apache service?
/etc/init.d/httpd start
port 21
pirut
squid -z
22. If in doubt about package names - you can find them in the ...
yum update kernel
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)
iptables -F
DocumentRoot
23. How to start the vsftp service automatically on boot?
-l
chkconfig vsftpd on
/etc/vsftpd
filesystem type is not ext2 or ext3
24. 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:
iptables
setup
showmount -e
setsebool -P htttpd.enable.homedirs 1
25. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
fdisk
-i
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/media/repodata
26. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
-i (do not use -U or -F!)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk
27. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
parted; check x
/etc/httpd/conf/
tune2fs
28. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
/ (root) - /boot and linux swap
telnetd : ALL EXCEPT 192.168.1.10
--import file
fdisk -l
29. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
/etc/httpd/conf/
dd if=./diskboot.img of=/dev/sdc
setsebool -P htttpd.enable.homedirs 1
telnetd : ALL EXCEPT 192.168.1.10
30. httpd ___ shows me what config files were installed when the httpd package was installed
rpm -V
service vsftpd status
rpm -qc
rpm -V zip
31. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
rpm -qc
chkconfig vsftpd on
rpm -Va
32. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
iptables -F
yum install mod_ssl squid
select (followed by the device name such as /dev/hdb)
parted; check x
33. Use parted to display disk geometry for /dev/hda and end up in shell
htpasswd -c /etc/httpd/webpass e
parted /dev/hda print
(rpm -q)p file (for rpmfile name)
filesystem type is not ext2 or ext3
34. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
/etc/lvmtab
fdisk -l
Yes
35. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install mod_ssl squid
fdisk
port 21
36. Where is vsftpd.conf?
/etc/httpd/conf/
(rpm -q)p file (for rpmfile name)
yum install mod_ssl squid
/etc/vsftpd
37. How to disable the firewall on the current system?
First boot process
iptables -F
tune2fs
setup
38. Perform a simple check of the file system. minor-num is x.
(rpm -q)p file (for rpmfile name)
parted; check x
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V zip
39. 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
/etc/init.d/httpd start
LVM
/etc/init.d/vsftpd start
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
40. '____ /var/www' will tell you the ACL settings of /var/www
/etc/init.d/httpd restart
LVM
telnetd : ALL EXCEPT 192.168.1.10
ls -Z
41. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
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)
/etc/init.d/httpd start
showmount -a
rpm -ivh --replacepkgs xxxx*
42. 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 ____
parted; check x
AllowOverride
elinks
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
43. 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
service vsftpd status
yum -y update
rpm -V zip
yum update kernel
44. rpm ____ to install kernel updates
parted /dev/hda print
yum update kernel
-i (do not use -U or -F!)
parted; mklabel k
45. rpm ____ to import the rpm key for integrity checking
setsebool -P squid_connect_any 1
--import file
resize2fs
chmod 705
46. 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:
chkconfig httpd on
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
(rpm -q)p file (for rpmfile name)
/boot
47. What command starts the same menu as the text-mode First Boot process?
setup
ErrorLog
var/www/html
ssh
48. Create a disk label for the partition table called k
chkconfig --level 35 httpd on
showmount -e
parted; mklabel k
ssh
49. what port needs to be open to access ftp?
yum install mod_ssl squid
chkconfig vsftpd on
port 21
/boot
50. The rpm ____ option installs the package - if it isn't already installed.
lvdisplay -D /dev/rootvg/tmplv
ErrorLog
-i
nfs