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. 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)
5
ServerTokens
e2fsadm
dumpe2fs
2. 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
/media/repodata
setup
wget (http://devmon.dev.schwab.com/index.html)
3. 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
chmod 705
LVM
setsebool -P squid_connect_any 1
4. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
chmod 705
setsebool -P htttpd.enable.homedirs 1
rpm -Va
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
5. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
tune2fs
yum install vsftpd
/etc/init.d/vsftpd start
6. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
AllowOverride
/boot
wget (http://devmon.dev.schwab.com/index.html)
7. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
fdisk -l
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
First boot process
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
8. 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:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum update kernel
wget (http://devmon.dev.schwab.com/index.html)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
9. Virtual Host Configuration: Sets a root directory for the virtual host.
setsebool -P squid_connect_any 1
service vsftpd status
DocumentRoot
tune2fs
10. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
/etc/init.d/httpd restart
filesystem type is not ext2 or ext3
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/vsftpd start
11. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 701
lvextend -L4G /dev/rootvg/tmplv
ServerName
12. ____ is used for creating ext2 and ext3 file systems
mke2fs
ServerAdmin
iptables -F
AllowOverride
13. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
pirut
rpm -V zip
chmod 705
setsebool -P htttpd.enable.homedirs 1
14. 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.
-i (do not use -U or -F!)
parted; check x
First boot process
rpm -V
15. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
yum install vsftpd
5
AllowOverride
16. How to start apache service?
/etc/init.d/httpd start
port 21
rpm -Va
e2fsadm
17. 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
telnetd : ALL EXCEPT 192.168.1.10
mke2fs
-l
wget (http://devmon.dev.schwab.com/index.html)
18. 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
chkconfig --level 35 httpd on
select (followed by the device name such as /dev/hdb)
-i (do not use -U or -F!)
iptables
19. You can use the ____ tool after installation to add any package groups that you missed.
resize2fs /dev/myvg/homevol
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
pirut
20. Where is vsftpd.conf?
rpm -e zip
showmount -a
/etc/vsftpd
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
21. ____ configuration is not available via text mode RHEL installation.
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/etc/init.d/vsftpd start
rpm -V
LVM
22. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/etc/init.d/httpd start
yum install mod_ssl squid
(rpm -q)p file (for rpmfile name)
wget (http://devmon.dev.schwab.com/index.html)
23. Where is the vsftp pub dir?
rpm -Va
/var/ftp/pub
(rpm -q)p file (for rpmfile name)
LVM
24. 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
NameVirtualHost
AllowOverride
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
parted /dev/hda print
25. rpm option to show me the package files
tune2fs
-l
lvdisplay -D /dev/rootvg/tmplv
ErrorLog
26. 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
wget (http://devmon.dev.schwab.com/index.html)
port 21
chcon -R -t httpd_sys_content_t /home/michael/public_html
setsebool -P htttpd.enable.homedirs 1
27. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
system-config-firewall
mke2fs
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables
28. _____ will change the size of /dev/rootvg/tmplv to 4 gig
ServerName
ls -Z
grep '[.*]' server1.repo
lvextend -L4G /dev/rootvg/tmplv
29. 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)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
telnetd : ALL EXCEPT 192.168.1.10
parted; check x
CustomLog
30. Run the ____ command to find the device associated with the USB key.
chkconfig --list httpd
parted; check x
fdisk -l
NameVirtualHost
31. what port needs to be open to access ftp?
fdisk
port 21
parted; check x
lvextend -L4G /dev/rootvg/tmplv
32. The main Squid configuration file is ____/squid.conf
fdisk -l
parted; check x
/etc/squid/
chmod 705
33. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
rpm -V
resize2fs /dev/myvg/homevol
/var/ftp/pub
34. ____ is used to modify file system parameters
filesystem type is not ext2 or ext3
tune2fs
DocumentRoot
lvdisplay -D /dev/rootvg/tmplv
35. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
Yes
NameVirtualHost
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
36. Where is the config dir for vsftpd?
ls -Z
/etc/vsftpd
select (followed by the device name such as /dev/hdb)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
37. Are SELinux and iptables-based firewalls are enabled by default?
Yes
/etc/httpd/conf/
chkconfig httpd on
/etc/lvmtab
38. rpm ____ to install kernel updates
rpm -e zip
-i (do not use -U or -F!)
iptables -F
-l
39. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
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)
fdisk
yum install httpd
lvextend -L4G /dev/rootvg/tmplv
40. What is the standard directory for file sharing with vsFTP?
rpm -V
ServerName
var/ftp/pub
dumpe2fs
41. 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.
parted; check x
elinks
fdisk -l
iptables -F
42. Create a disk label for the partition table called k
/etc/init.d/httpd start
mke2fs
port 21
parted; mklabel k
43. To check status of ftp daemon
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
tune2fs
service vsftpd status
44. 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
fdisk -l
/etc/squid/
-i (do not use -U or -F!)
ServerTokens
45. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
setsebool -P squid_connect_any 1
iptables
(rpm -q)p file (for rpmfile name)
/etc/init.d/httpd start
46. 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:
/etc/init.d/httpd start
First boot process
htpasswd -c /etc/httpd/webpass e
--import file
47. What is the first post installation step?
First boot process
-i
telnetd : ALL EXCEPT 192.168.1.10
port 21
48. Where to find the main apache config file?
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
lvdisplay -D /dev/rootvg/tmplv
/etc/httpd/conf/
rpm -V
49. 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 ____
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)
fdisk -l
elinks
yum install httpd
50. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum install vsftpd
yum install httpd
select (followed by the device name such as /dev/hdb)
fdisk