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. Are SELinux and iptables-based firewalls are enabled by default?
Yes
chmod 705
ServerTokens
dd if=./diskboot.img of=/dev/sdc
2. The rpm ____ option installs the package - if it isn't already installed.
-i
/etc/lvmtab
/etc/vsftpd
ServerAdmin
3. What is the first post installation step?
parted /dev/hda print
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
lvdisplay -D /dev/rootvg/tmplv
First boot process
4. How do you restart the apache web server?
wget (http://devmon.dev.schwab.com/index.html)
5
rpm -V
/etc/init.d/httpd restart
5. You can use the ____ tool after installation to add any package groups that you missed.
pirut
nfs
fdisk -l
service vsftpd status
6. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
-i (do not use -U or -F!)
(rpm -q)p file (for rpmfile name)
AllowOverride
rpm -ivh --replacepkgs xxxx*
7. 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
/etc/vsftpd
setsebool -P squid_connect_any 1
showmount -e
8. Virtual Host Configuration: Sets a root directory for the virtual host.
showmount -e
ssh
squid -z
DocumentRoot
9. 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
10. ____ is used to modify file system parameters
yum install httpd
system-config-firewall
telnetd : ALL EXCEPT 192.168.1.10
tune2fs
11. ____ configuration is not available via text mode RHEL installation.
iptables -F
LVM
parted; check x
rpm -V zip
12. what utility can be used to open port 80?
setsebool -P htttpd.enable.homedirs 1
CustomLog
system-config-firewall
chmod 705
13. 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.
select (followed by the device name such as /dev/hdb)
parted /dev/hda print
squid -z
iptables -F
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
select (followed by the device name such as /dev/hdb)
/etc/vsftpd
var/ftp/pub
15. How to install vsftpd?
/etc/vsftpd
/ (root) - /boot and linux swap
yum install mod_ssl squid
yum install vsftpd
16. Perform a simple check of the file system. minor-num is x.
var/ftp/pub
AllowOverride
parted; check x
mke2fs
17. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
lvdisplay -D /dev/rootvg/tmplv
filesystem type is not ext2 or ext3
htpasswd -c /etc/httpd/webpass e
18. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
iptables
lvextend -L4G /dev/rootvg/tmplv
showmount -e
yum clean all
19. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
setsebool -P squid_connect_any 1
DocumentRoot
5
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
20. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
ls -Z
yum install httpd
system-config-firewall
21. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
rpm -V zip
port 21
yum -y update
lvdisplay -D /dev/rootvg/tmplv
22. 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
ServerTokens
/var/ftp/pub
setsebool -P squid_connect_any 1
chkconfig --level 35 httpd on
23. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
yum update kernel
/etc/init.d/httpd start
dumpe2fs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
24. 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
pirut
setsebool -P squid_connect_any 1
rpm -ivh --replacepkgs xxxx*
/boot
25. rpm ____ [name of package] to verify the package - once you have manually imported the key
ServerTokens
/etc/vsftpd
AllowOverride
-K
26. How to make sure apache starts automatically on next reboot?
elinks
chkconfig httpd on
e2fsadm
Yes
27. The main Squid configuration file is ____/squid.conf
rpm -ivh --replacepkgs xxxx*
/etc/squid/
lvextend -L4G /dev/rootvg/tmplv
iptables -F
28. 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
AllowOverride
grep '[.*]' server1.repo
telnetd : ALL EXCEPT 192.168.1.10
var/ftp/pub
29. 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
mke2fs
rpm -e zip
chcon -R -t httpd_sys_content_t /home/michael/public_html
30. rpm ____ verifies the installed zip rpm against the rpm database
CustomLog
/etc/vsftpd
rpm -V zip
setsebool -P squid_connect_any 1
31. ____ can expand and shrink ext2 and ext3 file systems
telnetd : ALL EXCEPT 192.168.1.10
resize2fs
ls -Z
CustomLog
32. To check status of ftp daemon
ServerTokens
service vsftpd status
parted /dev/hda print
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)
33. '____ /var/www' will tell you the ACL settings of /var/www
-l
yum clean all
ls -Z
setsebool -P htttpd.enable.homedirs 1
34. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/media/repodata
yum install httpd
dd if=./diskboot.img of=/dev/sdc
-i
35. After you edit /etc/exports - run service ___ stop...
/etc/init.d/vsftpd start
-K
nfs
/etc/httpd/conf/
36. 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
ServerTokens
rpm -V
setsebool -P squid_connect_any 1
var/ftp/pub
37. 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:
e2fsadm
showmount -e
fdisk -l
lvdisplay -D /dev/rootvg/tmplv
38. To list under which run levels the web service will start
-i
ssh
setsebool -P squid_connect_any 1
chkconfig --list httpd
39. ____ prints superblock and block group information.
LVM
chmod 705
chkconfig --level 35 httpd on
dumpe2fs
40. 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.
setsebool -P squid_connect_any 1
system-config-firewall
rpm -ivh --replacepkgs xxxx*
rpm -V
41. 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
fdisk -l
First boot process
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
42. 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:
chkconfig httpd on
htpasswd -c /etc/httpd/webpass e
/etc/init.d/vsftpd start
/etc/lvmtab
43. Tthe file that might contain: oldvg - rootvg - etc.
DocumentRoot
rpm -V
/etc/lvmtab
yum install httpd
44. How to start apache service?
chkconfig vsftpd on
rpm -ivh --replacepkgs xxxx*
/etc/init.d/httpd start
/etc/lvmtab
45. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
/etc/init.d/httpd start
chmod 701
mke2fs
ServerTokens
46. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chkconfig --level 35 httpd on
Yes
yum install httpd
ServerAdmin
47. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
/etc/httpd/conf/
chkconfig httpd on
5
48. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
lvextend -L4G /dev/rootvg/tmplv
chkconfig --list httpd
select (followed by the device name such as /dev/hdb)
-i
49. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
filesystem type is not ext2 or ext3
elinks
chkconfig httpd on
resize2fs /dev/myvg/homevol
50. Where is the vsftp pub dir?
yum -y update
(rpm -q)p file (for rpmfile name)
/var/ftp/pub
LVM