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. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
rpm -V zip
/etc/httpd/conf/
/etc/lvmtab
2. 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.
AllowOverride
ServerAdmin
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V
3. rpm ____ verifies the installed zip rpm against the rpm database
iptables -F
rpm -V zip
dumpe2fs
First boot process
4. httpd ___ to update the httpd package - automatically answering yes to all the questions
/boot
nfs
yum -y update
lvdisplay -D /dev/rootvg/tmplv
5. 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
yum install mod_ssl squid
parted; check x
Yes
6. _____ will change the size of /dev/rootvg/tmplv to 4 gig
Yes
LVM
lvextend -L4G /dev/rootvg/tmplv
showmount -e
7. To check status of ftp daemon
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
-K
/etc/init.d/httpd restart
8. 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:
fdisk -l
showmount -e
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerName
9. 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 ____
AllowOverride
/boot
NameVirtualHost
elinks
10. 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
/etc/httpd/conf/
rpm -e zip
yum install mod_ssl squid
11. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
iptables -F
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --list httpd
NameVirtualHost
12. '____ /var/www' will tell you the ACL settings of /var/www
AllowOverride
setsebool -P htttpd.enable.homedirs 1
ls -Z
NameVirtualHost
13. 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)
chkconfig --list httpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum update kernel
14. Where is the vsftp pub dir?
/var/ftp/pub
chcon -R -t httpd_sys_content_t /home/michael/public_html
var/www/html
lvextend -L4G /dev/rootvg/tmplv
15. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
system-config-firewall
lvdisplay -D /dev/rootvg/tmplv
service vsftpd status
chkconfig httpd on
16. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm -V
yum clean all
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
17. How to start the vsftp service?
/etc/init.d/vsftpd start
yum update kernel
resize2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
18. what port needs to be open to access ftp?
port 21
/media/repodata
parted; check x
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
19. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
--import file
dd if=./diskboot.img of=/dev/sdc
rpm -ivh --replacepkgs xxxx*
select (followed by the device name such as /dev/hdb)
20. rpm ____ to import the rpm key for integrity checking
ServerTokens
dumpe2fs
--import file
elinks
21. Where is vsftpd.conf?
NameVirtualHost
/etc/vsftpd
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
22. Perform a simple check of the file system. minor-num is x.
NameVirtualHost
ServerTokens
yum clean all
parted; check x
23. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
ServerTokens
--import file
ServerName
24. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
/etc/lvmtab
chkconfig vsftpd on
ServerAdmin
ServerName
25. To list under which run levels the web service will start
chkconfig --list httpd
yum install httpd
fdisk
DocumentRoot
26. 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.
port 21
iptables -F
showmount -e
/etc/vsftpd
27. 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:
dumpe2fs
/etc/httpd/conf/
dd if=./diskboot.img of=/dev/sdc
htpasswd -c /etc/httpd/webpass e
28. 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
29. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
iptables -F
fdisk
--import file
rpm -V zip
30. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum install vsftpd
(rpm -q)p file (for rpmfile name)
fdisk -l
rpm -V
31. 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
chkconfig --list httpd
chmod 705
32. Create the basic cache directories in /var/spool/squid with the following command:
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
/etc/init.d/httpd start
squid -z
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
showmount -e
htpasswd -c /etc/httpd/webpass e
ServerTokens
DocumentRoot
34. The main Squid configuration file is ____/squid.conf
elinks
ssh
ServerTokens
/etc/squid/
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:
filesystem type is not ext2 or ext3
yum clean all
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
(rpm -q)p file (for rpmfile name)
36. Where is the config dir for vsftpd?
tune2fs
htpasswd -c /etc/httpd/webpass e
/etc/vsftpd
yum install mod_ssl squid
37. How do you restart the apache web server?
/etc/init.d/httpd restart
CustomLog
parted; mklabel k
/var/ftp/pub
38. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chkconfig vsftpd on
chmod 701
lvextend -L4G /dev/rootvg/tmplv
ServerName
39. rpm ____ to install kernel updates
service vsftpd status
yum update kernel
-i (do not use -U or -F!)
rpm -V
40. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
-l
service vsftpd status
/media/repodata
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
41. 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)
e2fsadm
/media/repodata
iptables -F
rpm -e zip
42. How to disable the firewall on the current system?
system-config-firewall
iptables -F
yum install vsftpd
select (followed by the device name such as /dev/hdb)
43. rpm ____ verifies all installed rpms against the rpm database
setsebool -P squid_connect_any 1
fdisk -l
grep '[.*]' server1.repo
rpm -Va
44. 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
/etc/init.d/vsftpd start
system-config-firewall
chkconfig --list httpd
AllowOverride
45. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/etc/init.d/vsftpd start
yum -y update
lvextend -L4G /dev/rootvg/tmplv
wget (http://devmon.dev.schwab.com/index.html)
46. How to start the vsftp service automatically on boot?
pirut
/etc/httpd/conf/
chkconfig vsftpd on
ServerAdmin
47. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/etc/init.d/httpd start
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
tune2fs
48. The rpm ____ option installs the package - if it isn't already installed.
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)
filesystem type is not ext2 or ext3
-i
showmount -a
49. ____ prints superblock and block group information.
/etc/init.d/httpd restart
parted; check x
dumpe2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
50. Where is the main apache data directory?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk
var/www/html
service vsftpd status