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. How to start apache service?
var/www/html
/etc/init.d/httpd start
showmount -a
rpm -Va
2. what port needs to be open to access ftp?
elinks
iptables
port 21
showmount -a
3. Virtual Host Configuration: Sets a root directory for the virtual host.
yum install vsftpd
parted; mklabel k
select (followed by the device name such as /dev/hdb)
DocumentRoot
4. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
var/ftp/pub
/etc/lvmtab
setsebool -P htttpd.enable.homedirs 1
CustomLog
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 --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk -l
telnetd : ALL EXCEPT 192.168.1.10
rpm -V
6. What is the standard directory for file sharing with vsFTP?
rpm -qc
ls -Z
var/ftp/pub
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
7. The main Squid configuration file is ____/squid.conf
chkconfig httpd on
/etc/squid/
setup
pirut
8. httpd ___ shows me what config files were installed when the httpd package was installed
parted; check x
rpm -qc
lvextend -L4G /dev/rootvg/tmplv
iptables -F
9. To check status of ftp daemon
yum install mod_ssl squid
yum update kernel
lvdisplay -D /dev/rootvg/tmplv
service vsftpd status
10. 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
/media/repodata
AllowOverride
resize2fs
/etc/init.d/vsftpd start
11. What command starts the same menu as the text-mode First Boot process?
setup
pirut
rpm -V zip
parted /dev/hda print
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)
ssh
-l
rpm -Va
CustomLog
13. Where is the vsftp pub dir?
ls -Z
parted; check x
rpm -e zip
/var/ftp/pub
14. 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
ls -Z
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
dumpe2fs
15. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
htpasswd -c /etc/httpd/webpass e
rpm -V
yum install vsftpd
16. 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
yum -y update
-K
service vsftpd status
17. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
--import file
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ErrorLog
18. What is the first post installation step?
First boot process
fdisk -l
wget (http://devmon.dev.schwab.com/index.html)
system-config-firewall
19. Create the basic cache directories in /var/spool/squid with the following command:
/etc/httpd/conf/
squid -z
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -e zip
20. How to install apache?
ServerTokens
yum install httpd
ServerAdmin
rpm -qc
21. You can use the ____ tool after installation to add any package groups that you missed.
pirut
AllowOverride
/ (root) - /boot and linux swap
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
22. How to install vsftpd?
fdisk -l
yum install vsftpd
chkconfig httpd on
resize2fs /dev/myvg/homevol
23. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
grep '[.*]' server1.repo
parted; check x
24. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ErrorLog
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)
rpm -Va
rpm -ivh --replacepkgs xxxx*
25. To list under which run levels the web service will start
ServerAdmin
chkconfig --list httpd
yum -y update
dumpe2fs
26. Tthe file that might contain: oldvg - rootvg - etc.
showmount -e
mke2fs
/etc/lvmtab
ServerTokens
27. How to disable the firewall on the current system?
showmount -e
squid -z
iptables -F
select (followed by the device name such as /dev/hdb)
28. The simplest way to install Apache
rpm -ivh --replacepkgs xxxx*
/etc/vsftpd
setsebool -P squid_connect_any 1
yum install httpd
29. 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
yum update kernel
setsebool -P htttpd.enable.homedirs 1
filesystem type is not ext2 or ext3
/etc/httpd/conf/
30. ____ is used to modify file system parameters
service vsftpd status
/etc/init.d/httpd start
var/www/html
tune2fs
31. To install both mod_ssl and squid packages
yum install mod_ssl squid
fdisk -l
rpm -e zip
/var/ftp/pub
32. Apache supports security by specifying active ports through the Listen and ____ directives.
setsebool -P squid_connect_any 1
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
/media/repodata
33. 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.
iptables -F
parted /dev/hda print
ServerName
chmod 701
34. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
/var/ftp/pub
chmod 701
showmount -a
chkconfig vsftpd on
35. ____ can expand and shrink ext2 and ext3 file systems
/boot
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs
ls -Z
36. Run the ____ command to find the device associated with the USB key.
DocumentRoot
/boot
parted /dev/hda print
fdisk -l
37. Where to find the main apache config file?
mke2fs
/etc/httpd/conf/
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
38. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
fdisk -l
var/ftp/pub
mke2fs
dd if=./diskboot.img of=/dev/sdc
39. httpd ___ to update the httpd package - automatically answering yes to all the questions
-i (do not use -U or -F!)
/etc/init.d/httpd restart
rpm -V zip
yum -y update
40. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
chmod 705
wget (http://devmon.dev.schwab.com/index.html)
parted; check x
rpm -V
41. rpm ____ to install kernel updates
select (followed by the device name such as /dev/hdb)
/ (root) - /boot and linux swap
iptables -F
-i (do not use -U or -F!)
42. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
/ (root) - /boot and linux swap
/boot
iptables
filesystem type is not ext2 or ext3
43. Where is the main apache data directory?
var/www/html
telnetd : ALL EXCEPT 192.168.1.10
-K
First boot process
44. 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:
parted /dev/hda print
showmount -e
yum update kernel
/var/ftp/pub
45. rpm ____ verifies all installed rpms against the rpm database
rpm -ivh --replacepkgs xxxx*
rpm -Va
system-config-firewall
var/www/html
46. what utility can be used to open port 80?
dumpe2fs
/etc/httpd/conf/
/etc/squid/
system-config-firewall
47. ____ is used for creating ext2 and ext3 file systems
-l
lvextend -L4G /dev/rootvg/tmplv
setsebool -P htttpd.enable.homedirs 1
mke2fs
48. rpm option to show me the package files
e2fsadm
-l
/etc/squid/
/etc/vsftpd
49. ____ prints superblock and block group information.
port 21
dumpe2fs
ServerTokens
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
50. After you edit /etc/exports - run service ___ stop...
/ (root) - /boot and linux swap
resize2fs
nfs
/etc/httpd/conf/