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. Create the basic cache directories in /var/spool/squid with the following command:
fdisk -l
e2fsadm
squid -z
tune2fs
2. 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
parted /dev/hda print
iptables
rpm -Va
setup
3. 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:
/etc/init.d/httpd restart
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/
showmount -e
4. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
telnetd : ALL EXCEPT 192.168.1.10
fdisk -l
resize2fs /dev/myvg/homevol
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
5. 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)
chcon -R -t httpd_sys_content_t /home/michael/public_html
-i
fdisk -l
6. To install both mod_ssl and squid packages
filesystem type is not ext2 or ext3
chmod 701
yum install mod_ssl squid
lvdisplay -D /dev/rootvg/tmplv
7. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
telnetd : ALL EXCEPT 192.168.1.10
system-config-firewall
showmount -a
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
8. Perform a simple check of the file system. minor-num is x.
chcon -R -t httpd_sys_content_t /home/michael/public_html
pirut
parted; check x
/etc/squid/
9. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
dd if=./diskboot.img of=/dev/sdc
--import file
lvdisplay -D /dev/rootvg/tmplv
rpm -V zip
10. rpm ____ to install kernel updates
-i (do not use -U or -F!)
/etc/lvmtab
/etc/vsftpd
select (followed by the device name such as /dev/hdb)
11. 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)
resize2fs
chmod 701
DocumentRoot
CustomLog
12. 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
-i (do not use -U or -F!)
system-config-firewall
wget (http://devmon.dev.schwab.com/index.html)
13. Tthe file that might contain: oldvg - rootvg - etc.
chmod 705
chkconfig vsftpd on
-i
/etc/lvmtab
14. Run the ____ command to find the device associated with the USB key.
fdisk
fdisk -l
yum update kernel
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
15. Create a disk label for the partition table called k
select (followed by the device name such as /dev/hdb)
chkconfig --list httpd
parted; mklabel k
ServerName
16. Virtual Host Configuration: Sets a root directory for the virtual host.
DocumentRoot
filesystem type is not ext2 or ext3
pirut
-i (do not use -U or -F!)
17. Where to find the main apache config file?
resize2fs
/etc/httpd/conf/
htpasswd -c /etc/httpd/webpass e
var/ftp/pub
18. After you edit /etc/exports - run service ___ stop...
nfs
CustomLog
/etc/vsftpd
htpasswd -c /etc/httpd/webpass e
19. 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
chkconfig --level 35 httpd on
rpm -V zip
chkconfig vsftpd on
20. 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.
chkconfig httpd on
pirut
rpm -V
iptables -F
21. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
rpm -ivh --replacepkgs xxxx*
ServerAdmin
chkconfig httpd on
/etc/lvmtab
22. To list under which run levels the web service will start
chkconfig --list httpd
var/ftp/pub
grep '[.*]' server1.repo
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
23. 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:
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
NameVirtualHost
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/httpd/conf/
24. 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
wget (http://devmon.dev.schwab.com/index.html)
service vsftpd status
lvextend -L4G /dev/rootvg/tmplv
25. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
var/ftp/pub
5
fdisk -l
CustomLog
26. rpm ____ to import the rpm key for integrity checking
yum install httpd
--import file
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted; mklabel k
27. How to start apache service?
ls -Z
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
28. ____ configuration is not available via text mode RHEL installation.
squid -z
LVM
dumpe2fs
rpm -Va
29. If in doubt about package names - you can find them in the ...
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
--import file
yum install httpd
30. 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 ____
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ServerName
ErrorLog
rpm -e zip
31. What is the first post installation step?
/etc/lvmtab
ssh
/etc/squid/
First boot process
32. Virtual Host Configuration: Names the URL for the virtual host.
AllowOverride
NameVirtualHost
showmount -a
ServerName
33. How to make sure apache starts automatically on next reboot?
grep '[.*]' server1.repo
iptables -F
ls -Z
chkconfig httpd on
34. Where is the config dir for vsftpd?
rpm -V zip
/etc/vsftpd
iptables -F
nfs
35. How to disable the firewall on the current system?
iptables -F
lvdisplay -D /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
var/ftp/pub
36. Where is the vsftp pub dir?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/var/ftp/pub
parted; check x
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
37. 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
/etc/init.d/httpd restart
/boot
yum update kernel
/media/repodata
38. You can use the ____ tool after installation to add any package groups that you missed.
pirut
NameVirtualHost
ErrorLog
parted /dev/hda print
39. The simplest way to install Apache
rpm -ivh --replacepkgs xxxx*
ServerName
yum install httpd
fdisk -l
40. ____ can expand and shrink ext2 and ext3 file systems
yum -y update
/etc/init.d/vsftpd start
resize2fs
iptables
41. 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)
-i
pirut
showmount -e
42. What command starts the same menu as the text-mode First Boot process?
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
chcon -R -t httpd_sys_content_t /home/michael/public_html
setup
43. '____ /var/www' will tell you the ACL settings of /var/www
rpm -V
ls -Z
parted; mklabel k
yum install httpd
44. 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
chkconfig vsftpd on
parted /dev/hda print
rpm -e zip
chcon -R -t httpd_sys_content_t /home/michael/public_html
45. httpd ___ shows me what config files were installed when the httpd package was installed
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -qc
/etc/init.d/httpd restart
nfs
46. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
NameVirtualHost
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)
tune2fs
47. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install mod_ssl squid
/var/ftp/pub
48. 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
First boot process
chkconfig vsftpd on
grep '[.*]' server1.repo
telnetd : ALL EXCEPT 192.168.1.10
49. 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
AllowOverride
fdisk
setsebool -P squid_connect_any 1
ErrorLog
50. 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 ____
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
nfs
elinks
ssh