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. 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:
/media/repodata
filesystem type is not ext2 or ext3
fdisk -l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
2. The main Squid configuration file is ____/squid.conf
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/squid/
resize2fs /dev/myvg/homevol
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)
3. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
fdisk
lvdisplay -D /dev/rootvg/tmplv
/etc/init.d/httpd start
select (followed by the device name such as /dev/hdb)
4. httpd ___ shows me what config files were installed when the httpd package was installed
port 21
rpm -qc
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -a
5. rpm ____ to import the rpm key for integrity checking
htpasswd -c /etc/httpd/webpass e
iptables -F
--import file
/etc/httpd/conf/
6. 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)
ls -Z
e2fsadm
resize2fs /dev/myvg/homevol
parted; check x
7. Create a disk label for the partition table called k
var/ftp/pub
AllowOverride
chkconfig vsftpd on
parted; mklabel k
8. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
dumpe2fs
chkconfig vsftpd on
ServerAdmin
9. If in doubt about package names - you can find them in the ...
nfs
pirut
tune2fs
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)
10. 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
ssh
/boot
parted; mklabel k
-l
11. How do you restart the apache web server?
/etc/squid/
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
DocumentRoot
12. ____ can expand and shrink ext2 and ext3 file systems
/etc/lvmtab
resize2fs
/ (root) - /boot and linux swap
rpm -e zip
13. After you edit /etc/exports - run service ___ stop...
iptables -F
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
nfs
-i (do not use -U or -F!)
14. 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
/var/ftp/pub
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ServerTokens
/etc/init.d/httpd start
15. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
/etc/vsftpd
yum -y update
telnetd : ALL EXCEPT 192.168.1.10
yum clean all
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)
squid -z
CustomLog
setsebool -P squid_connect_any 1
ErrorLog
17. 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)
resize2fs /dev/myvg/homevol
-i
nfs
18. Tthe file that might contain: oldvg - rootvg - etc.
rpm -V zip
var/www/html
/etc/lvmtab
mke2fs
19. Virtual Host Configuration: Names the URL for the virtual host.
yum install httpd
ServerName
/etc/lvmtab
5
20. what port needs to be open to access ftp?
yum install vsftpd
Yes
First boot process
port 21
21. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
e2fsadm
showmount -a
/etc/init.d/httpd start
showmount -e
22. Perform a simple check of the file system. minor-num is x.
rpm -qc
parted; check x
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
--import file
23. pam ___ will tell me if any files in the pam package have changed since it was first installed
lvextend -L4G /dev/rootvg/tmplv
chkconfig httpd on
rpm -V
chmod 705
24. How to install vsftpd?
showmount -a
yum install vsftpd
ssh
e2fsadm
25. 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
dd if=./diskboot.img of=/dev/sdc
AllowOverride
--import file
-K
26. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
rpm -Va
service vsftpd status
ServerAdmin
chmod 701
27. To list under which run levels the web service will start
showmount -a
rpm -V
chkconfig --list httpd
/etc/vsftpd
28. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
ssh
chkconfig --level 35 httpd on
rpm -qc
rpm -e zip
29. How to start the vsftp service?
/etc/init.d/vsftpd start
iptables -F
select (followed by the device name such as /dev/hdb)
chkconfig --level 35 httpd on
30. What command starts the same menu as the text-mode First Boot process?
chkconfig --level 35 httpd on
chkconfig httpd on
-i (do not use -U or -F!)
setup
31. How to make sure apache starts automatically on next reboot?
wget (http://devmon.dev.schwab.com/index.html)
filesystem type is not ext2 or ext3
system-config-firewall
chkconfig httpd on
32. Are SELinux and iptables-based firewalls are enabled by default?
ServerAdmin
/var/ftp/pub
Yes
chcon -R -t httpd_sys_content_t /home/michael/public_html
33. The rpm ____ option installs the package - if it isn't already installed.
tune2fs
-l
-i
lvdisplay -D /dev/rootvg/tmplv
34. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
lvextend -L4G /dev/rootvg/tmplv
/etc/init.d/vsftpd start
fdisk -l
dumpe2fs
35. What is the standard directory for file sharing with vsFTP?
rpm -e zip
var/ftp/pub
chkconfig httpd on
NameVirtualHost
36. 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
/etc/httpd/conf/
rpm -ivh --replacepkgs xxxx*
First boot process
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
37. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
(rpm -q)p file (for rpmfile name)
rpm -V
pirut
var/ftp/pub
38. Create the basic cache directories in /var/spool/squid with the following command:
-i (do not use -U or -F!)
/etc/init.d/httpd restart
squid -z
iptables -F
39. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
mke2fs
port 21
iptables
40. ____ is used to modify file system parameters
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chkconfig vsftpd on
tune2fs
pirut
41. 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
42. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
/etc/init.d/vsftpd start
First boot process
chmod 705
grep '[.*]' server1.repo
43. 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:
e2fsadm
rpm -V
mke2fs
showmount -e
44. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
ServerName
First boot process
/etc/init.d/httpd restart
45. rpm option to show me the package files
iptables
-l
/etc/lvmtab
ServerName
46. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
pirut
parted; check x
var/www/html
47. Where is vsftpd.conf?
system-config-firewall
/etc/vsftpd
wget (http://devmon.dev.schwab.com/index.html)
ServerTokens
48. What service is allowed through the default firewall?
ssh
yum clean all
/etc/init.d/vsftpd start
select (followed by the device name such as /dev/hdb)
49. 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*
AllowOverride
select (followed by the device name such as /dev/hdb)
ErrorLog
50. You can use the ____ tool after installation to add any package groups that you missed.
pirut
grep '[.*]' server1.repo
setup
lvextend -L4G /dev/rootvg/tmplv