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. _____ will change the size of /dev/rootvg/tmplv to 4 gig
NameVirtualHost
/etc/vsftpd
yum install mod_ssl squid
lvextend -L4G /dev/rootvg/tmplv
2. Run the ____ command to find the device associated with the USB key.
ssh
fdisk -l
5
ServerName
3. I just finished editing my /etc/yum.repos.d/*repo file and want yum to use the new info - so I run ____
chmod 701
ErrorLog
yum clean all
resize2fs
4. Create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
/etc/squid/
dd if=./diskboot.img of=/dev/sdc
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install httpd
5. What is the first post installation step?
First boot process
service vsftpd status
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
6. rpm ____ to install kernel updates
-i (do not use -U or -F!)
var/ftp/pub
iptables
lvdisplay -D /dev/rootvg/tmplv
7. After you edit /etc/exports - run service ___ stop...
Yes
-l
chmod 701
nfs
8. ____ configuration is not available via text mode RHEL installation.
chkconfig httpd on
LVM
/boot
setup
9. The simplest way to install Apache
filesystem type is not ext2 or ext3
ssh
yum install httpd
/etc/vsftpd
10. Perform a simple check of the file system. minor-num is x.
parted; check x
/ (root) - /boot and linux swap
chmod 701
e2fsadm
11. 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:
/etc/vsftpd
chkconfig httpd on
iptables
showmount -e
12. How to start the vsftp service automatically on boot?
chkconfig vsftpd on
/etc/httpd/conf/
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
nfs
13. Use parted to display disk geometry for /dev/hda and end up in shell
--import file
parted /dev/hda print
parted; check x
chkconfig vsftpd on
14. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
e2fsadm
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
DocumentRoot
iptables -F
15. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
filesystem type is not ext2 or ext3
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
16. 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
-i
/etc/httpd/conf/
var/ftp/pub
AllowOverride
17. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
lvextend -L4G /dev/rootvg/tmplv
port 21
rpm -qc
18. To install both mod_ssl and squid packages
/etc/vsftpd
rpm -e zip
rpm -V
yum install mod_ssl squid
19. '____ /var/www' will tell you the ACL settings of /var/www
rpm -e zip
/ (root) - /boot and linux swap
ls -Z
chkconfig httpd on
20. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
yum clean all
parted; check x
-K
21. 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.
NameVirtualHost
telnetd : ALL EXCEPT 192.168.1.10
-l
iptables -F
22. You can use the ____ tool after installation to add any package groups that you missed.
iptables -F
system-config-firewall
pirut
fdisk -l
23. rpm ____ to import the rpm key for integrity checking
/etc/vsftpd
lvdisplay -D /dev/rootvg/tmplv
--import file
DocumentRoot
24. To list under which run levels the web service will start
chkconfig --list httpd
/var/ftp/pub
/etc/init.d/httpd start
/etc/vsftpd
25. 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
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/init.d/httpd restart
/etc/httpd/conf/
26. Create the basic cache directories in /var/spool/squid with the following command:
squid -z
rpm -V
ServerAdmin
/var/ftp/pub
27. Create a disk label for the partition table called k
setsebool -P squid_connect_any 1
/ (root) - /boot and linux swap
parted; mklabel k
rpm -ivh --replacepkgs xxxx*
28. 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
wget (http://devmon.dev.schwab.com/index.html)
chkconfig --level 35 httpd on
yum clean all
/boot
29. rpm ____ verifies the installed zip rpm against the rpm database
setsebool -P htttpd.enable.homedirs 1
pirut
/etc/init.d/vsftpd start
rpm -V zip
30. For http - if you implement 'UserDir public_html' - you need to also ____ /home/michael if you want /home/michael/public_html accessible
fdisk -l
NameVirtualHost
chmod 701
-i (do not use -U or -F!)
31. 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
CustomLog
rpm -e zip
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
32. How to disable the firewall on the current system?
lvdisplay -D /dev/rootvg/tmplv
dd if=./diskboot.img of=/dev/sdc
chcon -R -t httpd_sys_content_t /home/michael/public_html
iptables -F
33. I ran 'e2label /dev/sda' and got 'bad magic number' Why?
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
AllowOverride
filesystem type is not ext2 or ext3
LVM
34. what port needs to be open to access ftp?
system-config-firewall
/etc/vsftpd
port 21
yum -y update
35. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
lvextend -L4G /dev/rootvg/tmplv
yum install httpd
chkconfig --level 35 httpd on
setsebool -P squid_connect_any 1
36. 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 ____
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)
elinks
fdisk -l
yum -y update
37. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
iptables -F
/etc/vsftpd
--import file
(rpm -q)p file (for rpmfile name)
38. 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:
ls -Z
First boot process
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/lvmtab
39. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
5
dumpe2fs
setsebool -P htttpd.enable.homedirs 1
htpasswd -c /etc/httpd/webpass e
40. What command starts the same menu as the text-mode First Boot process?
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
wget (http://devmon.dev.schwab.com/index.html)
setup
iptables -F
41. Where to find the main apache config file?
chkconfig vsftpd on
/etc/httpd/conf/
-i
fdisk -l
42. What parts of rhel6 should be installed to separate volumes?
var/www/html
/ (root) - /boot and linux swap
DocumentRoot
NameVirtualHost
43. Where is vsftpd.conf?
/ (root) - /boot and linux swap
yum update kernel
yum install httpd
/etc/vsftpd
44. How to install apache?
nfs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
yum install httpd
filesystem type is not ext2 or ext3
45. rpm option to show me the package files
ErrorLog
-l
/media/repodata
iptables
46. When an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
-l
rpm -ivh --replacepkgs xxxx*
chkconfig --list httpd
fdisk
47. The main Squid configuration file is ____/squid.conf
system-config-firewall
--import file
var/www/html
/etc/squid/
48. 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 ____
Yes
iptables -F
rpm -e zip
chkconfig --list httpd
49. 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:
parted; check x
iptables -F
htpasswd -c /etc/httpd/webpass e
nfs
50. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
mke2fs
/ (root) - /boot and linux swap
rpm -qc
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)