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 parts of rhel6 should be installed to separate volumes?
iptables
First boot process
/ (root) - /boot and linux swap
parted /dev/hda print
2. 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!)
rpm -V
select (followed by the device name such as /dev/hdb)
/var/ftp/pub
3. Run the ____ command to find the device associated with the USB key.
yum update kernel
rpm -e zip
fdisk -l
ls -Z
4. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
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 --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
5. Where is the config dir for vsftpd?
mke2fs
-K
/etc/vsftpd
lvextend -L4G /dev/rootvg/tmplv
6. rpm ____ verifies the installed zip rpm against the rpm database
/etc/lvmtab
dd if=./diskboot.img of=/dev/sdc
iptables -F
rpm -V zip
7. 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 ____
ErrorLog
var/ftp/pub
rpm -e zip
--import file
8. Use grep to count how many repositories have been configured in the file server1.repo
9. How to disable the firewall on the current system?
iptables -F
var/www/html
rpm -e zip
select (followed by the device name such as /dev/hdb)
10. Where is the vsftp pub dir?
yum clean all
/media/repodata
/var/ftp/pub
ServerName
11. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
--import file
yum install httpd
NameVirtualHost
yum update kernel
12. How to install vsftpd?
yum install vsftpd
resize2fs
rpm -ivh --replacepkgs xxxx*
ssh
13. To list under which run levels the web service will start
-i
chkconfig --list httpd
dd if=./diskboot.img of=/dev/sdc
/etc/init.d/httpd start
14. 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
ServerAdmin
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -V
fdisk -l
15. ____ prints superblock and block group information.
rpm -qc
lvextend -L4G /dev/rootvg/tmplv
dumpe2fs
filesystem type is not ext2 or ext3
16. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
/boot
filesystem type is not ext2 or ext3
rpm -V
17. ____ is used to modify file system parameters
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
tune2fs
nfs
18. 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
iptables -F
e2fsadm
dd if=./diskboot.img of=/dev/sdc
yum update kernel
19. You can use the ____ tool after installation to add any package groups that you missed.
pirut
setup
/etc/vsftpd
chkconfig --level 35 httpd on
20. 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
iptables
ls -Z
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)
telnetd : ALL EXCEPT 192.168.1.10
21. The rpm ____ option installs the package - if it isn't already installed.
lvdisplay -D /dev/rootvg/tmplv
-i
iptables -F
-i (do not use -U or -F!)
22. Virtual Host Configuration: Sets a root directory for the virtual host.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
parted /dev/hda print
yum -y update
DocumentRoot
23. 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)
e2fsadm
setsebool -P squid_connect_any 1
parted; check x
parted /dev/hda print
24. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
ErrorLog
pirut
/etc/lvmtab
25. Use parted to display disk geometry for /dev/hda and end up in shell
var/ftp/pub
fdisk -l
parted /dev/hda print
chmod 705
26. rpm option to show me the package files
setsebool -P squid_connect_any 1
-l
AllowOverride
dumpe2fs
27. ____ configuration is not available via text mode RHEL installation.
service vsftpd status
parted /dev/hda print
LVM
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
28. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
fdisk -l
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)
yum clean all
LVM
29. What is the first post installation step?
var/www/html
parted /dev/hda print
First boot process
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
30. How to start the vsftp service?
/etc/init.d/vsftpd start
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
-K
chkconfig --list httpd
31. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
dd if=./diskboot.img of=/dev/sdc
chmod 701
select (followed by the device name such as /dev/hdb)
yum clean all
32. What is the standard directory for file sharing with vsFTP?
var/ftp/pub
htpasswd -c /etc/httpd/webpass e
rpm -V
dd if=./diskboot.img of=/dev/sdc
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 ____
lvextend -L4G /dev/rootvg/tmplv
elinks
rpm -V
rpm -ivh --replacepkgs xxxx*
34. rpm ____ to import the rpm key for integrity checking
NameVirtualHost
NameVirtualHost
--import file
ServerAdmin
35. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
chmod 701
fdisk
chkconfig --list httpd
/etc/init.d/httpd restart
36. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
AllowOverride
chmod 701
chmod 705
squid -z
37. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
showmount -e
NameVirtualHost
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
wget (http://devmon.dev.schwab.com/index.html)
38. The main Squid configuration file is ____/squid.conf
/etc/squid/
select (followed by the device name such as /dev/hdb)
iptables -F
lvextend -L4G /dev/rootvg/tmplv
39. To check status of ftp daemon
rpm -qc
service vsftpd status
elinks
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
40. 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
NameVirtualHost
setsebool -P htttpd.enable.homedirs 1
/boot
/ (root) - /boot and linux swap
41. rpm ____ verifies all installed rpms against the rpm database
parted; mklabel k
rpm -Va
/boot
rpm -e zip
42. After you edit /etc/exports - run service ___ stop...
nfs
/etc/init.d/vsftpd start
lvextend -L4G /dev/rootvg/tmplv
fdisk
43. 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
-K
5
chcon -R -t httpd_sys_content_t /home/michael/public_html
showmount -a
44. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
chkconfig vsftpd on
showmount -e
-l
45. Where is the main apache data directory?
tune2fs
ErrorLog
(rpm -q)p file (for rpmfile name)
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:
iptables -F
parted; mklabel k
iptables
showmount -e
47. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
/etc/httpd/conf/
filesystem type is not ext2 or ext3
fdisk -l
wget (http://devmon.dev.schwab.com/index.html)
48. 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:
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
htpasswd -c /etc/httpd/webpass e
chmod 705
yum install httpd
49. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum install vsftpd
grep '[.*]' server1.repo
(rpm -q)p file (for rpmfile name)
iptables -F
50. How to install apache?
-i (do not use -U or -F!)
yum install httpd
resize2fs /dev/myvg/homevol
Yes