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. After you edit /etc/exports - run service ___ stop...
CustomLog
nfs
-l
iptables
2. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
/var/ftp/pub
chkconfig --list httpd
/etc/init.d/httpd start
filesystem type is not ext2 or ext3
3. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
nfs
yum clean all
pirut
4. 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
fdisk
/boot
rpm -V zip
resize2fs /dev/myvg/homevol
5. 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:
showmount -e
/etc/vsftpd
AllowOverride
setsebool -P htttpd.enable.homedirs 1
6. 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 ____
rpm -e zip
/etc/init.d/httpd start
rpm -V
ssh
7. Where to find the main apache config file?
/etc/httpd/conf/
ssh
chcon -R -t httpd_sys_content_t /home/michael/public_html
parted; check x
8. Where is the vsftp pub dir?
ServerTokens
system-config-firewall
/var/ftp/pub
rpm -V
9. rpm ____ verifies the installed zip rpm against the rpm database
service vsftpd status
rpm -V zip
-i (do not use -U or -F!)
yum install httpd
10. ____ prints superblock and block group information.
iptables
dumpe2fs
chkconfig httpd on
First boot process
11. What is the standard directory for file sharing with vsFTP?
resize2fs /dev/myvg/homevol
telnetd : ALL EXCEPT 192.168.1.10
var/ftp/pub
ServerName
12. The main Squid configuration file is ____/squid.conf
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/squid/
resize2fs
yum update kernel
13. Use grep to count how many repositories have been configured in the file server1.repo
14. what utility can be used to open port 80?
nfs
system-config-firewall
fdisk -l
rpm -e zip
15. ____ configuration is not available via text mode RHEL installation.
LVM
parted; mklabel k
/etc/init.d/httpd start
-i
16. 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)
/etc/lvmtab
system-config-firewall
dumpe2fs
CustomLog
17. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chkconfig --level 35 httpd on
yum -y update
var/ftp/pub
wget (http://devmon.dev.schwab.com/index.html)
18. 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
--import file
resize2fs /dev/myvg/homevol
DocumentRoot
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
19. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
-l
lvdisplay -D /dev/rootvg/tmplv
chcon -R -t httpd_sys_content_t /home/michael/public_html
NameVirtualHost
20. httpd ___ to update the httpd package - automatically answering yes to all the questions
/etc/init.d/vsftpd start
Yes
yum install httpd
yum -y update
21. 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
ssh
ServerTokens
chkconfig vsftpd on
22. To check status of ftp daemon
/etc/init.d/vsftpd start
elinks
service vsftpd status
dumpe2fs
23. What command starts the same menu as the text-mode First Boot process?
pirut
var/ftp/pub
setup
elinks
24. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
telnetd : ALL EXCEPT 192.168.1.10
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk
showmount -a
25. Create the basic cache directories in /var/spool/squid with the following command:
LVM
service vsftpd status
var/ftp/pub
squid -z
26. How to start the vsftp service?
yum clean all
/etc/init.d/vsftpd start
htpasswd -c /etc/httpd/webpass e
mke2fs
27. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
rpm -qc
port 21
5
/etc/vsftpd
28. ____ is used to modify file system parameters
tune2fs
/etc/init.d/vsftpd start
showmount -a
lvextend -L4G /dev/rootvg/tmplv
29. 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.
service vsftpd status
iptables -F
resize2fs /dev/myvg/homevol
filesystem type is not ext2 or ext3
30. Where is the config dir for vsftpd?
/etc/vsftpd
-K
/etc/squid/
yum install mod_ssl squid
31. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
ssh
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
32. ____ is used for creating ext2 and ext3 file systems
ServerTokens
chmod 701
mke2fs
DocumentRoot
33. To list under which run levels the web service will start
chkconfig --list httpd
showmount -a
First boot process
var/ftp/pub
34. Tthe file that might contain: oldvg - rootvg - etc.
fdisk
chmod 701
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/lvmtab
35. How to start the vsftp service automatically on boot?
squid -z
/etc/init.d/vsftpd start
CustomLog
chkconfig vsftpd on
36. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
filesystem type is not ext2 or ext3
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dumpe2fs
37. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chcon -R -t httpd_sys_content_t /home/michael/public_html
chmod 705
fdisk
rpm -V
38. The rpm ____ option installs the package - if it isn't already installed.
setup
fdisk
-i
yum install mod_ssl squid
39. Apache supports security by specifying active ports through the Listen and ____ directives.
chkconfig vsftpd on
iptables -F
NameVirtualHost
ServerAdmin
40. Perform a simple check of the file system. minor-num is x.
rpm -qc
/boot
parted; check x
chmod 705
41. Create a disk label for the partition table called k
/etc/vsftpd
parted; mklabel k
setup
service vsftpd status
42. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
squid -z
/etc/httpd/conf/
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/media/repodata
43. If in doubt about package names - you can find them in the ...
fdisk -l
grep '[.*]' server1.repo
rpm -V zip
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)
44. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
setup
resize2fs /dev/myvg/homevol
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/boot
45. 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
AllowOverride
/etc/init.d/httpd restart
ServerTokens
ls -Z
46. ____ can expand and shrink ext2 and ext3 file systems
DocumentRoot
resize2fs
-l
First boot process
47. rpm ____ verifies all installed rpms against the rpm database
-i (do not use -U or -F!)
rpm -Va
chkconfig httpd on
/etc/init.d/vsftpd start
48. How to install vsftpd?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/media/repodata
yum install vsftpd
yum install httpd
49. rpm ____ [name of package] to verify the package - once you have manually imported the key
First boot process
AllowOverride
-K
yum update kernel
50. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
iptables -F
iptables -F
service vsftpd status
setsebool -P htttpd.enable.homedirs 1