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. '____ /var/www' will tell you the ACL settings of /var/www
ServerName
rpm -ivh --replacepkgs xxxx*
ls -Z
/etc/init.d/vsftpd start
2. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
var/www/html
yum install mod_ssl squid
--import file
yum clean all
3. How to make sure apache starts automatically on next reboot?
lvdisplay -D /dev/rootvg/tmplv
parted; check x
chkconfig httpd on
service vsftpd status
4. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
var/ftp/pub
/etc/vsftpd
chcon -R -t httpd_sys_content_t /home/michael/public_html
select (followed by the device name such as /dev/hdb)
5. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
AllowOverride
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd restart
/media/repodata
6. 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.
ErrorLog
rpm -V
CustomLog
resize2fs /dev/myvg/homevol
7. ____ is used to modify file system parameters
rpm -e zip
wget (http://devmon.dev.schwab.com/index.html)
yum -y update
tune2fs
8. Create a disk label for the partition table called k
ServerName
ServerAdmin
parted; mklabel k
pirut
9. _____ will change the size of /dev/rootvg/tmplv to 4 gig
fdisk -l
/etc/init.d/httpd start
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
lvextend -L4G /dev/rootvg/tmplv
10. Are SELinux and iptables-based firewalls are enabled by default?
nfs
/etc/lvmtab
Yes
chcon -R -t httpd_sys_content_t /home/michael/public_html
11. You need to configure firewalls and allow SELinux access in appropriate ways. Firewalls must allow access to the standard HTTP port - 80. SELinux must be configured to 'Allow HTTPD To Read Home Directories'. Finally - the ACL must be revised accordin
service vsftpd status
chcon -R -t httpd_sys_content_t /home/michael/public_html
e2fsadm
rpm -ivh --replacepkgs xxxx*
12. 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)
var/www/html
ErrorLog
CustomLog
/etc/init.d/httpd start
13. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
elinks
NameVirtualHost
/etc/vsftpd
parted /dev/hda print
14. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
setup
/etc/init.d/vsftpd start
ErrorLog
15. rpm ____ verifies all installed rpms against the rpm database
filesystem type is not ext2 or ext3
tune2fs
/var/ftp/pub
rpm -Va
16. The rpm ____ option installs the package - if it isn't already installed.
--import file
-i
lvextend -L4G /dev/rootvg/tmplv
setsebool -P squid_connect_any 1
17. 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.
fdisk
iptables -F
telnetd : ALL EXCEPT 192.168.1.10
parted; mklabel k
18. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
setsebool -P squid_connect_any 1
yum install httpd
ServerName
19. How do you restart the apache web server?
/etc/init.d/vsftpd start
/etc/vsftpd
ServerName
/etc/init.d/httpd restart
20. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/etc/squid/
iptables -F
dd if=./diskboot.img of=/dev/sdc
system-config-firewall
21. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
elinks
/etc/vsftpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
22. What service is allowed through the default firewall?
ssh
chcon -R -t httpd_sys_content_t /home/michael/public_html
chmod 705
setsebool -P htttpd.enable.homedirs 1
23. Virtual Host Configuration: Sets a root directory for the virtual host.
system-config-firewall
DocumentRoot
var/ftp/pub
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
24. what utility can be used to open port 80?
system-config-firewall
service vsftpd status
yum install mod_ssl squid
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
25. How to install vsftpd?
yum install mod_ssl squid
yum install vsftpd
ls -Z
fdisk
26. 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
showmount -e
AllowOverride
rpm -e zip
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
27. If in doubt about package names - you can find them in the ...
showmount -a
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)
ls -Z
system-config-firewall
28. Where is the vsftp pub dir?
htpasswd -c /etc/httpd/webpass e
chmod 705
var/www/html
/var/ftp/pub
29. 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)
fdisk
showmount -e
chkconfig --level 35 httpd on
30. How to start the vsftp service?
fdisk -l
/etc/init.d/vsftpd start
rpm -V zip
ssh
31. What parts of rhel6 should be installed to separate volumes?
var/ftp/pub
/ (root) - /boot and linux swap
setsebool -P htttpd.enable.homedirs 1
chkconfig httpd on
32. ____ configuration is not available via text mode RHEL installation.
LVM
rpm -V
var/www/html
squid -z
33. Create the basic cache directories in /var/spool/squid with the following command:
pirut
e2fsadm
squid -z
ServerAdmin
34. 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
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
telnetd : ALL EXCEPT 192.168.1.10
yum update kernel
35. 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
36. Use parted to display disk geometry for /dev/hda and end up in shell
5
parted /dev/hda print
dumpe2fs
rpm -Va
37. 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:
mke2fs
htpasswd -c /etc/httpd/webpass e
iptables -F
e2fsadm
38. ____ prints superblock and block group information.
dumpe2fs
chkconfig --list httpd
/etc/init.d/httpd start
/etc/vsftpd
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
iptables
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
First boot process
40. What is the first post installation step?
First boot process
var/www/html
fdisk
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
41. Run the ____ command to find the device associated with the USB key.
fdisk -l
yum -y update
AllowOverride
var/www/html
42. rpm ____ to import the rpm key for integrity checking
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
rpm -Va
--import file
43. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
yum install httpd
wget (http://devmon.dev.schwab.com/index.html)
tune2fs
yum install mod_ssl squid
44. The simplest way to install Apache
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -Va
yum install httpd
yum install vsftpd
45. When you configure Squid on your system - you need to allow access through appropriate ports and SELinux settings. The simplest approach with respect to Squid configuration assumes that all clients use the default Squid port 3128 - using TCP - where
rpm -V
iptables
service vsftpd status
yum install httpd
46. 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
chkconfig --level 35 httpd on
grep '[.*]' server1.repo
yum install vsftpd
47. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
showmount -a
CustomLog
chmod 701
48. rpm ____ to install kernel updates
resize2fs
-i (do not use -U or -F!)
yum install httpd
service vsftpd status
49. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
-l
e2fsadm
yum update kernel
fdisk -l
50. The main Squid configuration file is ____/squid.conf
NameVirtualHost
/etc/squid/
chmod 705
rpm -Va