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. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)
ServerTokens
port 21
2. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
dumpe2fs
nfs
-l
3. what port needs to be open to access ftp?
rpm -qc
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
port 21
setsebool -P squid_connect_any 1
4. After extending file system 'homevol' - unmount it and then run _____ to make the filesystem size match the new larger volume.
yum update kernel
dumpe2fs
telnetd : ALL EXCEPT 192.168.1.10
resize2fs /dev/myvg/homevol
5. Are SELinux and iptables-based firewalls are enabled by default?
-l
chkconfig vsftpd on
chkconfig --level 35 httpd on
Yes
6. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
parted; mklabel k
setsebool -P htttpd.enable.homedirs 1
rpm -ivh --replacepkgs xxxx*
First boot process
7. 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
setsebool -P squid_connect_any 1
(rpm -q)p file (for rpmfile name)
/etc/init.d/httpd restart
ls -Z
8. 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
-i
chmod 701
resize2fs /dev/myvg/homevol
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
9. 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
port 21
NameVirtualHost
htpasswd -c /etc/httpd/webpass e
10. httpd ___ to update the httpd package - automatically answering yes to all the questions
yum -y update
(rpm -q)p file (for rpmfile name)
yum clean all
elinks
11. 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
ls -Z
setsebool -P htttpd.enable.homedirs 1
var/www/html
12. What service is allowed through the default firewall?
ssh
rpm -V zip
LVM
filesystem type is not ext2 or ext3
13. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
-i
lvextend -L4G /dev/rootvg/tmplv
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
14. Where to find the main apache config file?
ls -Z
/etc/httpd/conf/
chmod 701
5
15. How to make sure apache starts automatically on next reboot?
var/www/html
/var/ftp/pub
chkconfig httpd on
First boot process
16. rpm ____ to import the rpm key for integrity checking
yum -y update
--import file
rpm -Va
squid -z
17. _____ will change the size of /dev/rootvg/tmplv to 4 gig
CustomLog
rpm -V
lvextend -L4G /dev/rootvg/tmplv
yum clean all
18. 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
/boot
yum update kernel
yum install vsftpd
filesystem type is not ext2 or ext3
19. rpm option to show me the package files
elinks
-l
(rpm -q)p file (for rpmfile name)
CustomLog
20. Run the ____ command to find the device associated with the USB key.
iptables
ServerName
fdisk -l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
21. Use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
rpm -qc
NameVirtualHost
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
22. rpm ____ verifies the installed zip rpm against the rpm database
setsebool -P squid_connect_any 1
rpm -Va
iptables -F
rpm -V zip
23. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/var/ftp/pub
iptables
parted; check x
wget (http://devmon.dev.schwab.com/index.html)
24. Tthe file that might contain: oldvg - rootvg - etc.
yum install httpd
/etc/lvmtab
/var/ftp/pub
iptables -F
25. 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
select (followed by the device name such as /dev/hdb)
/boot
26. Virtual Host Configuration: Names the URL for the virtual host.
-i
/etc/init.d/httpd start
ServerName
lvdisplay -D /dev/rootvg/tmplv
27. How to disable the firewall on the current system?
rpm -V
chkconfig httpd on
iptables -F
dd if=./diskboot.img of=/dev/sdc
28. rpm ____ to install kernel updates
/etc/lvmtab
-i (do not use -U or -F!)
yum install httpd
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)
29. 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.
/media/repodata
rpm -V
lvdisplay -D /dev/rootvg/tmplv
resize2fs /dev/myvg/homevol
30. You can use the ____ tool after installation to add any package groups that you missed.
e2fsadm
pirut
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum -y update
31. 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)
-l
resize2fs
CustomLog
e2fsadm
32. ____ can expand and shrink ext2 and ext3 file systems
Yes
NameVirtualHost
port 21
resize2fs
33. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
-i (do not use -U or -F!)
ServerName
-i
34. Where is the main apache data directory?
var/www/html
-l
elinks
rpm -e zip
35. Virtual Host Configuration: Sets a root directory for the virtual host.
/media/repodata
DocumentRoot
setsebool -P squid_connect_any 1
/etc/init.d/httpd start
36. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
e2fsadm
ServerAdmin
yum clean all
rpm -e zip
37. To check status of ftp daemon
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
service vsftpd status
/etc/init.d/httpd start
/etc/httpd/conf/
38. 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
First boot process
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/init.d/httpd start
AllowOverride
39. pam ___ will tell me if any files in the pam package have changed since it was first installed
grep '[.*]' server1.repo
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
--import file
rpm -V
40. What is the first post installation step?
/etc/init.d/httpd restart
rpm -V zip
First boot process
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
41. Perform a simple check of the file system. minor-num is x.
rpm -V zip
LVM
nfs
parted; check x
42. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ErrorLog
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd restart
43. ____ is used to modify file system parameters
tune2fs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum install vsftpd
elinks
44. After you edit /etc/exports - run service ___ stop...
lvextend -L4G /dev/rootvg/tmplv
parted; check x
nfs
/etc/lvmtab
45. Where is the vsftp pub dir?
chmod 701
telnetd : ALL EXCEPT 192.168.1.10
/var/ftp/pub
tune2fs
46. 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
rpm -e zip
ServerAdmin
ServerTokens
CustomLog
47. To install both mod_ssl and squid packages
chmod 701
setsebool -P htttpd.enable.homedirs 1
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
48. Create a disk label for the partition table called k
showmount -a
e2fsadm
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
parted; mklabel k
49. How do you restart the apache web server?
mke2fs
-i (do not use -U or -F!)
chkconfig --list httpd
/etc/init.d/httpd restart
50. 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.
ServerAdmin
yum install httpd
iptables -F
/var/ftp/pub