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/init.d/httpd start
rpm -e zip
/var/ftp/pub
rpm -ivh --replacepkgs xxxx*
2. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -e zip
setsebool -P htttpd.enable.homedirs 1
3. Create a disk label for the partition table called k
fdisk -l
chmod 705
select (followed by the device name such as /dev/hdb)
parted; mklabel k
4. ____ is used to modify file system parameters
chcon -R -t httpd_sys_content_t /home/michael/public_html
elinks
yum install mod_ssl squid
tune2fs
5. _____ will change the size of /dev/rootvg/tmplv to 4 gig
setsebool -P htttpd.enable.homedirs 1
/etc/httpd/conf/
dumpe2fs
lvextend -L4G /dev/rootvg/tmplv
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 ____
htpasswd -c /etc/httpd/webpass e
dumpe2fs
rpm -V
rpm -e zip
7. 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 update kernel
dd if=./diskboot.img of=/dev/sdc
elinks
grep '[.*]' server1.repo
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
--import file
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
/etc/init.d/httpd start
9. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
chmod 705
chkconfig --list httpd
/media/repodata
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
10. What is the standard directory for file sharing with vsFTP?
-i
var/ftp/pub
system-config-firewall
(rpm -q)p file (for rpmfile name)
11. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
chmod 705
yum install httpd
filesystem type is not ext2 or ext3
yum install vsftpd
12. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
rpm -e zip
-i (do not use -U or -F!)
lvextend -L4G /dev/rootvg/tmplv
chmod 705
13. ____ configuration is not available via text mode RHEL installation.
rpm -qc
rpm -V
LVM
wget (http://devmon.dev.schwab.com/index.html)
14. How to install vsftpd?
fdisk -l
yum install vsftpd
yum update kernel
iptables
15. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
select (followed by the device name such as /dev/hdb)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
grep '[.*]' server1.repo
/etc/vsftpd
16. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
ssh
fdisk
/etc/lvmtab
filesystem type is not ext2 or ext3
17. ____ can expand and shrink ext2 and ext3 file systems
lvextend -L4G /dev/rootvg/tmplv
setsebool -P squid_connect_any 1
resize2fs
select (followed by the device name such as /dev/hdb)
18. The rpm ____ option installs the package - if it isn't already installed.
-l
-i
parted /dev/hda print
tune2fs
19. If in doubt about package names - you can find them in the ...
yum -y update
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)
ssh
rpm -ivh --replacepkgs xxxx*
20. 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)
rpm -e zip
chkconfig httpd on
mke2fs
e2fsadm
21. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
lvdisplay -D /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
service vsftpd status
fdisk -l
22. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
chkconfig httpd on
ErrorLog
fdisk
23. What is the first post installation step?
port 21
(rpm -q)p file (for rpmfile name)
First boot process
chcon -R -t httpd_sys_content_t /home/michael/public_html
24. Use parted to display disk geometry for /dev/hda and end up in shell
showmount -a
/etc/lvmtab
elinks
parted /dev/hda print
25. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
/etc/squid/
/etc/init.d/httpd start
resize2fs /dev/myvg/homevol
26. The simplest way to install Apache
AllowOverride
NameVirtualHost
setsebool -P squid_connect_any 1
yum install httpd
27. The main Squid configuration file is ____/squid.conf
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
filesystem type is not ext2 or ext3
/etc/squid/
5
28. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
elinks
ssh
select (followed by the device name such as /dev/hdb)
var/ftp/pub
29. 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
/etc/httpd/conf/
rpm -qc
/etc/lvmtab
30. You can use the ____ tool after installation to add any package groups that you missed.
yum -y update
wget (http://devmon.dev.schwab.com/index.html)
pirut
resize2fs /dev/myvg/homevol
31. Where to find the main apache config file?
LVM
NameVirtualHost
rpm -V
/etc/httpd/conf/
32. 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
filesystem type is not ext2 or ext3
/etc/init.d/httpd restart
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
33. httpd ___ shows me what config files were installed when the httpd package was installed
iptables -F
setsebool -P squid_connect_any 1
setsebool -P htttpd.enable.homedirs 1
rpm -qc
34. 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
yum clean all
ls -Z
parted /dev/hda print
35. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum -y update
fdisk -l
(rpm -q)p file (for rpmfile name)
/etc/init.d/vsftpd start
36. What service is allowed through the default firewall?
ssh
port 21
parted /dev/hda print
First boot process
37. Where is the main apache data directory?
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ErrorLog
var/www/html
iptables -F
38. 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.
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerTokens
iptables -F
select (followed by the device name such as /dev/hdb)
39. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chkconfig --level 35 httpd on
/etc/httpd/conf/
lvextend -L4G /dev/rootvg/tmplv
chmod 701
40. Where is the config dir for vsftpd?
dd if=./diskboot.img of=/dev/sdc
/etc/vsftpd
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
lvdisplay -D /dev/rootvg/tmplv
41. rpm ____ to install kernel updates
pirut
yum -y update
-i (do not use -U or -F!)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
42. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
var/ftp/pub
setsebool -P squid_connect_any 1
iptables -F
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
43. For SELinux - you'll at least want to use the Security Level Configuration tool to activate the Allow Squid Daemon To Connect To The Network option - also known as the squid_connect_any boolean. Alternatively - you can activate this boolean with the
setsebool -P squid_connect_any 1
dd if=./diskboot.img of=/dev/sdc
chkconfig --list httpd
chkconfig --level 35 httpd on
44. what port needs to be open to access ftp?
-i (do not use -U or -F!)
First boot process
iptables -F
port 21
45. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
dd if=./diskboot.img of=/dev/sdc
First boot process
resize2fs /dev/myvg/homevol
/var/ftp/pub
46. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
port 21
e2fsadm
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
47. '____ /var/www' will tell you the ACL settings of /var/www
/etc/init.d/vsftpd start
select (followed by the device name such as /dev/hdb)
ls -Z
NameVirtualHost
48. Apache supports security by specifying active ports through the Listen and ____ directives.
fdisk
var/www/html
NameVirtualHost
rpm -e zip
49. 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
50. ____ prints superblock and block group information.
fdisk -l
setup
dumpe2fs
--import file