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. what utility can be used to open port 80?
system-config-firewall
wget (http://devmon.dev.schwab.com/index.html)
/boot
setup
2. Tthe file that might contain: oldvg - rootvg - etc.
fdisk -l
parted /dev/hda print
/etc/lvmtab
elinks
3. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
resize2fs /dev/myvg/homevol
/etc/vsftpd
showmount -a
port 21
4. 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
/etc/vsftpd
-i (do not use -U or -F!)
AllowOverride
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
5. 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.
rpm -V
fdisk
dd if=./diskboot.img of=/dev/sdc
select (followed by the device name such as /dev/hdb)
6. 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:
ErrorLog
lvdisplay -D /dev/rootvg/tmplv
tune2fs
htpasswd -c /etc/httpd/webpass e
7. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
rpm -ivh --replacepkgs xxxx*
iptables -F
iptables -F
8. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
DocumentRoot
-l
chkconfig --level 35 httpd on
/etc/lvmtab
9. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
wget (http://devmon.dev.schwab.com/index.html)
chcon -R -t httpd_sys_content_t /home/michael/public_html
resize2fs /dev/myvg/homevol
ServerTokens
10. 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
showmount -e
LVM
yum update kernel
-i (do not use -U or -F!)
11. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
/etc/init.d/vsftpd start
/media/repodata
showmount -e
chmod 701
12. How to install apache?
telnetd : ALL EXCEPT 192.168.1.10
system-config-firewall
chmod 705
yum install httpd
13. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
setsebool -P squid_connect_any 1
chkconfig --level 35 httpd on
/etc/vsftpd
14. '____ /var/www' will tell you the ACL settings of /var/www
5
ls -Z
/var/ftp/pub
rpm -qc
15. rpm ____ verifies all installed rpms against the rpm database
resize2fs /dev/myvg/homevol
rpm -Va
parted; check x
ssh
16. ____ can expand and shrink ext2 and ext3 file systems
parted /dev/hda print
/etc/vsftpd
/var/ftp/pub
resize2fs
17. ____ is used for creating ext2 and ext3 file systems
ServerName
mke2fs
squid -z
/ (root) - /boot and linux swap
18. Where to find the main apache config file?
/etc/httpd/conf/
yum install vsftpd
rpm -V
ServerName
19. ____ is used to modify file system parameters
mke2fs
tune2fs
ssh
ErrorLog
20. 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
Yes
telnetd : ALL EXCEPT 192.168.1.10
rpm -V
21. Use grep to count how many repositories have been configured in the file server1.repo
22. After you edit /etc/exports - run service ___ stop...
lvextend -L4G /dev/rootvg/tmplv
yum install mod_ssl squid
--import file
nfs
23. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
AllowOverride
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
24. 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
rpm -e zip
CustomLog
yum -y update
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
25. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
rpm -Va
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
var/www/html
ErrorLog
26. To check status of ftp daemon
-i
ServerName
parted; mklabel k
service vsftpd status
27. If in doubt about package names - you can find them in the ...
/media/repodata
chcon -R -t httpd_sys_content_t /home/michael/public_html
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)
Yes
28. 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
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
iptables
rpm -V zip
29. How do you restart the apache web server?
(rpm -q)p file (for rpmfile name)
setsebool -P htttpd.enable.homedirs 1
iptables -F
/etc/init.d/httpd restart
30. Run the ____ command to find the device associated with the USB key.
fdisk -l
ls -Z
grep '[.*]' server1.repo
htpasswd -c /etc/httpd/webpass e
31. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
e2fsadm
mke2fs
lvdisplay -D /dev/rootvg/tmplv
/ (root) - /boot and linux swap
32. 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
yum clean all
telnetd : ALL EXCEPT 192.168.1.10
/etc/init.d/httpd restart
(rpm -q)p file (for rpmfile name)
33. Are SELinux and iptables-based firewalls are enabled by default?
Yes
setsebool -P htttpd.enable.homedirs 1
/etc/squid/
e2fsadm
34. 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
chmod 705
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ServerTokens
e2fsadm
35. ____ prints superblock and block group information.
LVM
dumpe2fs
/etc/init.d/httpd restart
NameVirtualHost
36. Virtual Host Configuration: Names the URL for the virtual host.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerName
/ (root) - /boot and linux swap
chkconfig --level 35 httpd on
37. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
ssh
var/www/html
yum install httpd
38. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
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)
5
/etc/init.d/httpd restart
ServerName
39. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
grep '[.*]' server1.repo
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
htpasswd -c /etc/httpd/webpass e
40. Perform a simple check of the file system. minor-num is x.
parted; check x
5
/etc/vsftpd
htpasswd -c /etc/httpd/webpass e
41. Create a disk label for the partition table called k
parted; mklabel k
ls -Z
setup
dd if=./diskboot.img of=/dev/sdc
42. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
resize2fs
fdisk
AllowOverride
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
43. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
/boot
elinks
yum install httpd
ServerAdmin
44. rpm ____ to install kernel updates
system-config-firewall
DocumentRoot
-i (do not use -U or -F!)
tune2fs
45. 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
/media/repodata
chkconfig --level 35 httpd on
var/www/html
46. 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:
showmount -e
-l
telnetd : ALL EXCEPT 192.168.1.10
yum update kernel
47. You can use the ____ tool after installation to add any package groups that you missed.
iptables -F
pirut
ServerName
parted; check x
48. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
telnetd : ALL EXCEPT 192.168.1.10
var/www/html
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
filesystem type is not ext2 or ext3
49. How to install vsftpd?
service vsftpd status
/etc/init.d/httpd start
/var/ftp/pub
yum install vsftpd
50. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ssh
wget (http://devmon.dev.schwab.com/index.html)
rpm -ivh --replacepkgs xxxx*
NameVirtualHost