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. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
/etc/init.d/httpd restart
resize2fs
select (followed by the device name such as /dev/hdb)
system-config-firewall
2. What parts of rhel6 should be installed to separate volumes?
--import file
/ (root) - /boot and linux swap
-l
parted; mklabel k
3. Where is the config dir for vsftpd?
e2fsadm
/etc/vsftpd
/var/ftp/pub
var/ftp/pub
4. The simplest way to install Apache
yum install httpd
/boot
yum install mod_ssl squid
/etc/squid/
5. What is the first post installation step?
parted /dev/hda print
-i
-K
First boot process
6. You can use the ____ tool after installation to add any package groups that you missed.
pirut
e2fsadm
tune2fs
select (followed by the device name such as /dev/hdb)
7. _____ will change the size of /dev/rootvg/tmplv to 4 gig
wget (http://devmon.dev.schwab.com/index.html)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
lvextend -L4G /dev/rootvg/tmplv
(rpm -q)p file (for rpmfile name)
8. How do you restart the apache web server?
Yes
showmount -e
/etc/init.d/httpd start
/etc/init.d/httpd restart
9. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/media/repodata
chcon -R -t httpd_sys_content_t /home/michael/public_html
dd if=./diskboot.img of=/dev/sdc
/etc/lvmtab
10. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
-K
ls -Z
filesystem type is not ext2 or ext3
chmod 701
11. 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:
/etc/init.d/httpd start
port 21
--import file
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
12. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
/var/ftp/pub
rpm -e zip
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
13. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig httpd on
chkconfig --level 35 httpd on
ServerAdmin
rpm -ivh --replacepkgs xxxx*
14. Are SELinux and iptables-based firewalls are enabled by default?
Yes
yum update kernel
fdisk -l
--import file
15. How to disable the firewall on the current system?
5
/media/repodata
/var/ftp/pub
iptables -F
16. 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
/etc/lvmtab
setsebool -P squid_connect_any 1
-l
rpm -V zip
17. rpm ____ to install kernel updates
-i (do not use -U or -F!)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
iptables -F
18. What command starts the same menu as the text-mode First Boot process?
select (followed by the device name such as /dev/hdb)
chkconfig vsftpd on
dd if=./diskboot.img of=/dev/sdc
setup
19. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
system-config-firewall
chcon -R -t httpd_sys_content_t /home/michael/public_html
resize2fs /dev/myvg/homevol
filesystem type is not ext2 or ext3
20. After you edit /etc/exports - run service ___ stop...
nfs
-K
e2fsadm
setsebool -P htttpd.enable.homedirs 1
21. How to make sure apache starts automatically on next reboot?
system-config-firewall
chkconfig httpd on
/media/repodata
pirut
22. How to start the vsftp service?
setup
resize2fs
/etc/init.d/vsftpd start
var/www/html
23. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
ls -Z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-l
24. Use parted to display disk geometry for /dev/hda and end up in shell
/etc/vsftpd
iptables -F
parted /dev/hda print
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
25. What service is allowed through the default firewall?
NameVirtualHost
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chkconfig --level 35 httpd on
ssh
26. ____ prints superblock and block group information.
chkconfig httpd on
dumpe2fs
yum -y update
resize2fs
27. what port needs to be open to access ftp?
iptables
resize2fs /dev/myvg/homevol
5
port 21
28. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
select (followed by the device name such as /dev/hdb)
ServerAdmin
rpm -ivh --replacepkgs xxxx*
29. 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
service vsftpd status
pirut
tune2fs
30. Where is the main apache data directory?
(rpm -q)p file (for rpmfile name)
var/www/html
telnetd : ALL EXCEPT 192.168.1.10
grep '[.*]' server1.repo
31. rpm ____ [name of package] to verify the package - once you have manually imported the key
(rpm -q)p file (for rpmfile name)
yum install httpd
-K
yum -y update
32. ____ is used to modify file system parameters
/etc/vsftpd
/etc/init.d/httpd start
AllowOverride
tune2fs
33. 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:
select (followed by the device name such as /dev/hdb)
NameVirtualHost
chmod 701
htpasswd -c /etc/httpd/webpass e
34. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm -e zip
squid -z
/etc/init.d/vsftpd start
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
35. 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)
(rpm -q)p file (for rpmfile name)
/boot
CustomLog
-l
36. How to install apache?
port 21
yum install httpd
system-config-firewall
service vsftpd status
37. httpd ___ to update the httpd package - automatically answering yes to all the questions
chkconfig httpd on
First boot process
resize2fs /dev/myvg/homevol
yum -y update
38. ____ configuration is not available via text mode RHEL installation.
5
-K
select (followed by the device name such as /dev/hdb)
LVM
39. ____ is used for creating ext2 and ext3 file systems
e2fsadm
grep '[.*]' server1.repo
yum -y update
mke2fs
40. How to start the vsftp service automatically on boot?
chkconfig httpd on
lvdisplay -D /dev/rootvg/tmplv
chkconfig vsftpd on
mke2fs
41. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
/etc/vsftpd
rpm -e zip
/boot
42. 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
iptables -F
telnetd : ALL EXCEPT 192.168.1.10
NameVirtualHost
rpm -Va
43. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
/etc/lvmtab
(rpm -q)p file (for rpmfile name)
chkconfig --level 35 httpd on
filesystem type is not ext2 or ext3
44. '____ /var/www' will tell you the ACL settings of /var/www
-K
/boot
ls -Z
iptables -F
45. rpm ____ verifies all installed rpms against the rpm database
yum install mod_ssl squid
rpm -Va
rpm -qc
filesystem type is not ext2 or ext3
46. 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 ____
ServerTokens
rpm -e zip
CustomLog
fdisk -l
47. rpm ____ to import the rpm key for integrity checking
LVM
parted /dev/hda print
-K
--import file
48. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
/media/repodata
(rpm -q)p file (for rpmfile name)
/etc/squid/
htpasswd -c /etc/httpd/webpass e
49. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
e2fsadm
fdisk -l
/ (root) - /boot and linux swap
nfs
50. Run the ____ command to find the device associated with the USB key.
service vsftpd status
parted; mklabel k
fdisk -l
dumpe2fs