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. Create a disk label for the partition table called k
parted; mklabel k
rpm -V
/boot
ssh
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.
rpm -V
setup
select (followed by the device name such as /dev/hdb)
dumpe2fs
3. rpm ____ [name of package] to verify the package - once you have manually imported the key
showmount -e
/etc/init.d/vsftpd start
-K
ls -Z
4. what port needs to be open to access ftp?
/etc/lvmtab
/etc/init.d/httpd restart
ls -Z
port 21
5. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
(rpm -q)p file (for rpmfile name)
/boot
setsebool -P htttpd.enable.homedirs 1
chkconfig --list httpd
6. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
/etc/init.d/httpd restart
yum clean all
/etc/init.d/vsftpd start
telnetd : ALL EXCEPT 192.168.1.10
7. Use parted to display disk geometry for /dev/hda and end up in shell
/boot
parted /dev/hda print
/media/repodata
parted; mklabel k
8. To check status of ftp daemon
iptables
chkconfig httpd on
service vsftpd status
-l
9. 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
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)
parted; mklabel k
10. Virtual Host Configuration: Sets a root directory for the virtual host.
parted; check x
mke2fs
DocumentRoot
ErrorLog
11. Are SELinux and iptables-based firewalls are enabled by default?
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)
Yes
resize2fs /dev/myvg/homevol
-K
12. What is the first post installation step?
ServerAdmin
First boot process
e2fsadm
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
13. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
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 -q)p file (for rpmfile name)
parted /dev/hda print
service vsftpd status
14. 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
NameVirtualHost
tune2fs
Yes
ServerTokens
15. What parts of rhel6 should be installed to separate volumes?
rpm -ivh --replacepkgs xxxx*
wget (http://devmon.dev.schwab.com/index.html)
/ (root) - /boot and linux swap
iptables -F
16. Where is the vsftp pub dir?
chkconfig --list httpd
setsebool -P htttpd.enable.homedirs 1
resize2fs /dev/myvg/homevol
/var/ftp/pub
17. 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
18. 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
-K
showmount -e
telnetd : ALL EXCEPT 192.168.1.10
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
19. Virtual Host Configuration: Names the URL for the virtual host.
ServerTokens
iptables
/etc/init.d/vsftpd start
ServerName
20. How to install apache?
rpm -qc
yum install httpd
showmount -e
mke2fs
21. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
dd if=./diskboot.img of=/dev/sdc
5
CustomLog
rpm -qc
22. If rhel6 is in the /media directory - where is the XML file on that DVD with a database of packages and package groups?
chmod 701
5
/var/ftp/pub
/media/repodata
23. Run the ____ command to find the device associated with the USB key.
rpm -qc
chkconfig vsftpd on
First boot process
fdisk -l
24. How to start the vsftp service?
tune2fs
/etc/init.d/vsftpd start
yum clean all
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
25. ____ is used to modify file system parameters
mke2fs
pirut
iptables
tune2fs
26. After you edit /etc/exports - run service ___ stop...
iptables
dd if=./diskboot.img of=/dev/sdc
nfs
ErrorLog
27. How to install vsftpd?
yum install vsftpd
dd if=./diskboot.img of=/dev/sdc
ErrorLog
telnetd : ALL EXCEPT 192.168.1.10
28. rpm ____ verifies the installed zip rpm against the rpm database
/boot
squid -z
rpm -V zip
rpm -e zip
29. Perform a simple check of the file system. minor-num is x.
parted; check x
chkconfig vsftpd on
/etc/squid/
e2fsadm
30. 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
ssh
chcon -R -t httpd_sys_content_t /home/michael/public_html
/etc/vsftpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
31. ____ configuration is not available via text mode RHEL installation.
nfs
/etc/squid/
iptables
LVM
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 ____
/boot
elinks
/etc/vsftpd
/media/repodata
33. The main Squid configuration file is ____/squid.conf
/etc/squid/
telnetd : ALL EXCEPT 192.168.1.10
mke2fs
rpm -e zip
34. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum install httpd
showmount -a
35. 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:
filesystem type is not ext2 or ext3
iptables -F
htpasswd -c /etc/httpd/webpass e
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
36. ____ prints superblock and block group information.
iptables -F
dumpe2fs
/etc/vsftpd
setsebool -P squid_connect_any 1
37. 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.
dumpe2fs
First boot process
/var/ftp/pub
iptables -F
38. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
chkconfig vsftpd on
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/media/repodata
select (followed by the device name such as /dev/hdb)
39. How to make sure apache starts automatically on next reboot?
chkconfig httpd on
LVM
yum -y update
/etc/vsftpd
40. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
fdisk -l
/ (root) - /boot and linux swap
parted; check x
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
41. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
-i (do not use -U or -F!)
ServerAdmin
dd if=./diskboot.img of=/dev/sdc
-K
42. '____ /var/www' will tell you the ACL settings of /var/www
ls -Z
telnetd : ALL EXCEPT 192.168.1.10
port 21
lvdisplay -D /dev/rootvg/tmplv
43. Logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
rpm -V
resize2fs /dev/myvg/homevol
port 21
44. 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*
-l
ErrorLog
parted /dev/hda print
45. You can use the ____ tool after installation to add any package groups that you missed.
var/www/html
pirut
yum clean all
rpm -ivh --replacepkgs xxxx*
46. rpm ____ to import the rpm key for integrity checking
--import file
fdisk -l
ServerAdmin
dumpe2fs
47. _____ will change the size of /dev/rootvg/tmplv to 4 gig
/etc/init.d/httpd start
showmount -a
select (followed by the device name such as /dev/hdb)
lvextend -L4G /dev/rootvg/tmplv
48. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
-l
chkconfig vsftpd on
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
49. Tthe file that might contain: oldvg - rootvg - etc.
/etc/lvmtab
wget (http://devmon.dev.schwab.com/index.html)
pirut
grep '[.*]' server1.repo
50. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
yum install vsftpd
First boot process
Yes