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. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
port 21
/var/ftp/pub
ErrorLog
2. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
elinks
5
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)
fdisk -l
3. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
-K
mke2fs
showmount -a
iptables -F
4. If in doubt about package names - you can find them in the ...
grep '[.*]' server1.repo
/boot
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)
mke2fs
5. Create the basic cache directories in /var/spool/squid with the following command:
/etc/vsftpd
--import file
squid -z
Yes
6. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
-i (do not use -U or -F!)
ServerTokens
-i
7. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
-i (do not use -U or -F!)
system-config-firewall
8. ____ configuration is not available via text mode RHEL installation.
service vsftpd status
/etc/init.d/httpd start
LVM
/etc/init.d/vsftpd start
9. _____ will change the size of /dev/rootvg/tmplv to 4 gig
fdisk
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
lvextend -L4G /dev/rootvg/tmplv
/ (root) - /boot and linux swap
10. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
iptables -F
chkconfig --level 35 httpd on
grep '[.*]' server1.repo
11. 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 ____
Yes
rpm -e zip
elinks
chmod 701
12. what port needs to be open to access ftp?
grep '[.*]' server1.repo
port 21
AllowOverride
dumpe2fs
13. How to make sure apache starts automatically on next reboot?
ServerAdmin
/boot
chkconfig httpd on
nfs
14. ____ is used to modify file system parameters
5
-l
dd if=./diskboot.img of=/dev/sdc
tune2fs
15. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
/ (root) - /boot and linux swap
yum install httpd
resize2fs /dev/myvg/homevol
16. The main Squid configuration file is ____/squid.conf
rpm -V
ServerTokens
/etc/squid/
tune2fs
17. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
chkconfig httpd on
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum clean all
yum install mod_ssl squid
18. 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
telnetd : ALL EXCEPT 192.168.1.10
CustomLog
yum install vsftpd
squid -z
19. Where is vsftpd.conf?
/etc/vsftpd
/boot
chmod 701
/etc/httpd/conf/
20. httpd ___ to update the httpd package - automatically answering yes to all the questions
/etc/lvmtab
yum -y update
wget (http://devmon.dev.schwab.com/index.html)
/etc/vsftpd
21. How to start the vsftp service?
/etc/vsftpd
/etc/init.d/vsftpd start
telnetd : ALL EXCEPT 192.168.1.10
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
22. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
parted /dev/hda print
chmod 705
dd if=./diskboot.img of=/dev/sdc
DocumentRoot
23. Run the ____ command to find the device associated with the USB key.
rpm -ivh --replacepkgs xxxx*
/etc/lvmtab
fdisk -l
rpm -Va
24. You can use the ____ tool after installation to add any package groups that you missed.
setsebool -P squid_connect_any 1
resize2fs /dev/myvg/homevol
fdisk -l
pirut
25. 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
ServerTokens
ServerName
-i
/etc/init.d/vsftpd start
26. Where is the config dir for vsftpd?
/etc/vsftpd
chkconfig --level 35 httpd on
chmod 705
filesystem type is not ext2 or ext3
27. After you edit /etc/exports - run service ___ stop...
chmod 705
rpm -V zip
nfs
Yes
28. 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
var/www/html
AllowOverride
ServerTokens
/media/repodata
29. How to install apache?
/etc/vsftpd
yum install httpd
/ (root) - /boot and linux swap
chmod 705
30. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
setsebool -P squid_connect_any 1
/etc/init.d/vsftpd start
-i
31. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -V
/etc/lvmtab
setsebool -P squid_connect_any 1
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
32. How to start apache service?
fdisk
/etc/init.d/httpd start
chkconfig httpd on
iptables
33. What parts of rhel6 should be installed to separate volumes?
/ (root) - /boot and linux swap
ErrorLog
elinks
AllowOverride
34. rpm ____ to import the rpm key for integrity checking
lvdisplay -D /dev/rootvg/tmplv
--import file
rpm -ivh --replacepkgs xxxx*
filesystem type is not ext2 or ext3
35. Perform a simple check of the file system. minor-num is x.
/etc/vsftpd
lvdisplay -D /dev/rootvg/tmplv
parted; check x
ssh
36. Virtual Host Configuration: Names the URL for the virtual host.
var/ftp/pub
squid -z
ServerName
/etc/httpd/conf/
37. Where is the vsftp pub dir?
/var/ftp/pub
chkconfig httpd on
parted /dev/hda print
iptables -F
38. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
yum install httpd
/etc/lvmtab
-i
39. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
ServerName
NameVirtualHost
chkconfig vsftpd on
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
40. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
ls -Z
setsebool -P htttpd.enable.homedirs 1
showmount -e
wget (http://devmon.dev.schwab.com/index.html)
41. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
select (followed by the device name such as /dev/hdb)
setsebool -P htttpd.enable.homedirs 1
rpm -V
iptables -F
42. rpm ____ [name of package] to verify the package - once you have manually imported the key
nfs
rpm -ivh --replacepkgs xxxx*
ErrorLog
-K
43. To list under which run levels the web service will start
NameVirtualHost
/etc/init.d/httpd restart
rpm -e zip
chkconfig --list httpd
44. Where is the main apache data directory?
var/www/html
/ (root) - /boot and linux swap
nfs
yum install httpd
45. 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.
5
dumpe2fs
rpm -V
setsebool -P squid_connect_any 1
46. 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
47. 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:
iptables -F
htpasswd -c /etc/httpd/webpass e
yum update kernel
grep '[.*]' server1.repo
48. 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
-l
NameVirtualHost
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/boot
49. httpd ___ shows me what config files were installed when the httpd package was installed
yum install mod_ssl squid
rpm -ivh --replacepkgs xxxx*
yum -y update
rpm -qc
50. ____ prints superblock and block group information.
tune2fs
fdisk -l
dumpe2fs
rpm -ivh --replacepkgs xxxx*