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 the vsftp service?
iptables
mke2fs
parted; mklabel k
/etc/init.d/vsftpd start
2. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
filesystem type is not ext2 or ext3
/etc/init.d/httpd restart
ssh
/etc/squid/
3. 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:
resize2fs
port 21
fdisk -l
htpasswd -c /etc/httpd/webpass e
4. rpm option to show me the package files
-l
grep '[.*]' server1.repo
yum install vsftpd
ssh
5. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
ErrorLog
resize2fs /dev/myvg/homevol
LVM
yum install httpd
6. How to disable the firewall on the current system?
yum install httpd
port 21
iptables -F
service vsftpd status
7. You can use the ____ tool after installation to add any package groups that you missed.
dd if=./diskboot.img of=/dev/sdc
5
resize2fs /dev/myvg/homevol
pirut
8. ____ is used for creating ext2 and ext3 file systems
mke2fs
/ (root) - /boot and linux swap
lvextend -L4G /dev/rootvg/tmplv
ssh
9. To list under which run levels the web service will start
DocumentRoot
-i
chkconfig --list httpd
(rpm -q)p file (for rpmfile name)
10. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ssh
telnetd : ALL EXCEPT 192.168.1.10
lvdisplay -D /dev/rootvg/tmplv
11. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
NameVirtualHost
wget (http://devmon.dev.schwab.com/index.html)
parted; check x
setup
12. What parts of rhel6 should be installed to separate volumes?
rpm -V
telnetd : ALL EXCEPT 192.168.1.10
/ (root) - /boot and linux swap
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
13. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
Yes
elinks
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
rpm -Va
14. How do you restart the apache web server?
chmod 705
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/httpd restart
elinks
15. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
squid -z
chcon -R -t httpd_sys_content_t /home/michael/public_html
parted; check x
16. How to start apache service?
/etc/init.d/httpd start
pirut
/etc/init.d/vsftpd start
/etc/vsftpd
17. Where to find the main apache config file?
chmod 705
/etc/lvmtab
/etc/httpd/conf/
elinks
18. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
iptables -F
ServerAdmin
/etc/lvmtab
chmod 705
19. To install both mod_ssl and squid packages
yum install mod_ssl squid
dd if=./diskboot.img of=/dev/sdc
rpm -V
port 21
20. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
yum update kernel
First boot process
-K
fdisk -l
21. Where is vsftpd.conf?
/etc/vsftpd
rpm -V
yum update kernel
system-config-firewall
22. 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)
-i (do not use -U or -F!)
CustomLog
setup
ServerAdmin
23. _____ will change the size of /dev/rootvg/tmplv to 4 gig
port 21
NameVirtualHost
mke2fs
lvextend -L4G /dev/rootvg/tmplv
24. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -ivh --replacepkgs xxxx*
ServerTokens
DocumentRoot
-K
25. '____ /var/www' will tell you the ACL settings of /var/www
-i (do not use -U or -F!)
ls -Z
--import file
pirut
26. Create the basic cache directories in /var/spool/squid with the following command:
e2fsadm
squid -z
NameVirtualHost
system-config-firewall
27. 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
showmount -a
yum update kernel
service vsftpd status
AllowOverride
28. rpm ____ to install kernel updates
/ (root) - /boot and linux swap
yum install vsftpd
/etc/squid/
-i (do not use -U or -F!)
29. ____ can expand and shrink ext2 and ext3 file systems
-l
rpm -qc
resize2fs
/etc/squid/
30. 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 ____
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk
rpm -e zip
dumpe2fs
31. Tthe file that might contain: oldvg - rootvg - etc.
-l
setsebool -P squid_connect_any 1
/etc/lvmtab
/etc/init.d/vsftpd start
32. 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 ____
/media/repodata
port 21
elinks
rpm -qc
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
/boot
iptables -F
chkconfig httpd on
34. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
ls -Z
chmod 701
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
35. 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
5
AllowOverride
nfs
wget (http://devmon.dev.schwab.com/index.html)
36. what utility can be used to open port 80?
elinks
/etc/httpd/conf/
squid -z
system-config-firewall
37. rpm ____ verifies all installed rpms against the rpm database
rpm -Va
parted /dev/hda print
/etc/vsftpd
showmount -a
38. Create a disk label for the partition table called k
parted; mklabel k
yum -y update
var/ftp/pub
-i
39. ____ is used to modify file system parameters
tune2fs
-i
dumpe2fs
NameVirtualHost
40. How to install apache?
yum install httpd
yum -y update
resize2fs
chkconfig vsftpd on
41. 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:
fdisk -l
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
showmount -a
/etc/vsftpd
42. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
htpasswd -c /etc/httpd/webpass e
setsebool -P htttpd.enable.homedirs 1
yum install vsftpd
elinks
43. 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)
parted; mklabel k
e2fsadm
grep '[.*]' server1.repo
port 21
44. How to install vsftpd?
yum install vsftpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum install httpd
5
45. Where is the vsftp pub dir?
showmount -a
/var/ftp/pub
iptables
fdisk -l
46. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
yum install httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
/etc/init.d/vsftpd start
47. The rpm ____ option installs the package - if it isn't already installed.
CustomLog
htpasswd -c /etc/httpd/webpass e
-i
iptables -F
48. 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
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
/boot
filesystem type is not ext2 or ext3
(rpm -q)p file (for rpmfile name)
49. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
htpasswd -c /etc/httpd/webpass e
DocumentRoot
fdisk -l
yum clean all
50. Use grep to count how many repositories have been configured in the file server1.repo
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183