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. After you edit /etc/exports - run service ___ stop...
5
nfs
DocumentRoot
/etc/httpd/conf/
2. Perform a simple check of the file system. minor-num is x.
parted; check x
grep '[.*]' server1.repo
service vsftpd status
/ (root) - /boot and linux swap
3. To check status of ftp daemon
service vsftpd status
/etc/init.d/httpd restart
dd if=./diskboot.img of=/dev/sdc
ssh
4. Where is vsftpd.conf?
First boot process
/etc/vsftpd
filesystem type is not ext2 or ext3
pirut
5. httpd ___ shows me what config files were installed when the httpd package was installed
ServerTokens
/etc/httpd/conf/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -qc
6. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
/etc/vsftpd
setsebool -P htttpd.enable.homedirs 1
pirut
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
7. what port needs to be open to access ftp?
port 21
/ (root) - /boot and linux swap
parted; mklabel k
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
8. 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
/boot
ls -Z
AllowOverride
parted; check x
9. _____ will change the size of /dev/rootvg/tmplv to 4 gig
ErrorLog
lvextend -L4G /dev/rootvg/tmplv
wget (http://devmon.dev.schwab.com/index.html)
elinks
10. Virtual Host Configuration: Names the URL for the virtual host.
/etc/vsftpd
ServerName
-i
rpm -Va
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)
parted; mklabel k
CustomLog
fdisk
NameVirtualHost
12. How to start the vsftp service?
--import file
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
/etc/init.d/vsftpd start
setsebool -P htttpd.enable.homedirs 1
13. How do you restart the apache web server?
-i (do not use -U or -F!)
ServerAdmin
iptables
/etc/init.d/httpd restart
14. ____ is used to modify file system parameters
ServerName
tune2fs
e2fsadm
mke2fs
15. How to install apache?
resize2fs
yum install httpd
lvdisplay -D /dev/rootvg/tmplv
NameVirtualHost
16. pam ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V
nfs
var/ftp/pub
LVM
17. rpm ____ to install kernel updates
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/ (root) - /boot and linux swap
NameVirtualHost
-i (do not use -U or -F!)
18. what utility can be used to open port 80?
system-config-firewall
parted /dev/hda print
lvextend -L4G /dev/rootvg/tmplv
fdisk
19. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
showmount -a
yum install httpd
rpm -V
20. The simplest way to install Apache
yum install httpd
select (followed by the device name such as /dev/hdb)
filesystem type is not ext2 or ext3
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
21. httpd ___ to update the httpd package - automatically answering yes to all the questions
/media/repodata
yum update kernel
yum -y update
AllowOverride
22. What command starts the same menu as the text-mode First Boot process?
resize2fs /dev/myvg/homevol
setup
parted /dev/hda print
system-config-firewall
23. What service is allowed through the default firewall?
yum install vsftpd
ssh
fdisk
yum install httpd
24. rpm ____ [name of package] to verify the package - once you have manually imported the key
yum update kernel
/etc/init.d/httpd restart
-K
First boot process
25. Where to find the main apache config file?
parted; check x
system-config-firewall
/etc/httpd/conf/
chmod 701
26. 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
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
-l
ServerTokens
27. 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)
rpm -V
setsebool -P htttpd.enable.homedirs 1
NameVirtualHost
28. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
showmount -a
/var/ftp/pub
ServerName
NameVirtualHost
29. Are SELinux and iptables-based firewalls are enabled by default?
/media/repodata
parted /dev/hda print
Yes
5
30. 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
select (followed by the device name such as /dev/hdb)
NameVirtualHost
iptables
e2fsadm
31. 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
showmount -a
filesystem type is not ext2 or ext3
/boot
yum install mod_ssl squid
32. rpm ____ verifies the installed zip rpm against the rpm database
/etc/httpd/conf/
rpm -V zip
iptables -F
5
33. 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 ____
elinks
ServerName
rpm -ivh --replacepkgs xxxx*
e2fsadm
34. 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
nfs
chkconfig httpd on
setsebool -P squid_connect_any 1
fdisk
35. 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.
ssh
AllowOverride
resize2fs /dev/myvg/homevol
rpm -V
36. 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/
/etc/squid/
rpm -V zip
parted; check x
37. ____ configuration is not available via text mode RHEL installation.
LVM
/media/repodata
yum install httpd
ServerTokens
38. rpm ____ to import the rpm key for integrity checking
telnetd : ALL EXCEPT 192.168.1.10
squid -z
/etc/squid/
--import file
39. 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 ____
rpm -e zip
rpm -Va
resize2fs
/etc/lvmtab
40. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : ALL EXCEPT 192.168.1.10
rpm -e zip
resize2fs /dev/myvg/homevol
41. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
htpasswd -c /etc/httpd/webpass e
/media/repodata
chmod 705
42. rpm ____ verifies all installed rpms against the rpm database
Yes
resize2fs /dev/myvg/homevol
rpm -Va
DocumentRoot
43. What is the standard directory for file sharing with vsFTP?
mke2fs
var/ftp/pub
elinks
chmod 705
44. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
var/ftp/pub
filesystem type is not ext2 or ext3
rpm -V
nfs
45. Use grep to count how many repositories have been configured in the file server1.repo
46. 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
yum update kernel
iptables -F
/etc/vsftpd
47. You can use the ____ tool after installation to add any package groups that you missed.
rpm -e zip
showmount -e
fdisk -l
pirut
48. Apache supports security by specifying active ports through the Listen and ____ directives.
chmod 705
var/ftp/pub
NameVirtualHost
e2fsadm
49. Where is the vsftp pub dir?
service vsftpd status
setsebool -P htttpd.enable.homedirs 1
setsebool -P squid_connect_any 1
/var/ftp/pub
50. To install both mod_ssl and squid packages
rpm -Va
-i
yum install mod_ssl squid
rpm -qc