SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Redhat Linux Administration
Start Test
Study First
Subject
:
it-skills
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. 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 --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
rpm -V
ls -Z
grep "[.*]" server1.repo
2. ____ is used for creating ext2 and ext3 file systems
hkconfig --list httpd
bootable partitions
mke2fs
/etc/lvmtab
3. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
arted; mklabel k
chkconfig --level 35 httpd on
-i
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
4. rpm ____ to import the rpm key for integrity checking
--import file
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk -l
yum -y update httpd
5. Perform a simple check of the file system. minor-num is x.
dd if=./diskboot.img of=/dev/sdc
iptables -F
parted; check x
-i
6. 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
yum clean all
-K
-i
7. ____.com - ____.net - and ____.org domains are generic domain names that can't be assigned on the Internet. You can therefore use any of these domain names on your private network.
dd if=./diskboot.img of=/dev/sdc
grep "[.*]" server1.repo
example
dumpe2fs
8. ____ prints superblock and block group information.
-l
yum update kernel
dumpe2fs
AllowOverride
9. The file that might contain: oldvg - rootvg - etc.
lvdisplay -D /dev/rootvg/tmplv
/etc/lvmtab
select (followed by the device name such as /dev/hdb)
-i
10. 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 ____
fdisk -l
elinks
(rpm -q)p file (for rpmfile name)
rpm -Va
11. 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:
-i (do not use -U or -F!)
filesystem type is not ext2 or ext3
pirut
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
12. use parted to display disk geometry for /dev/hda and end up in shell
lvdisplay -D /dev/rootvg/tmplv
bootable partitions
parted /dev/hda print
tune2fs
13. To check status of ftp daemon
squid -z
yum update kernel
yum -y update httpd
service vsftpd status
14. The simplest way to install Apache
yum update kernel
yum install httpd
filesystem type is not ext2 or ext3
e2fsadm
15. create the basic cache directories in /var/spool/squid with the following command:
--import file
squid -z
e2fsadm
lvdisplay -D /dev/rootvg/tmplv
16. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
wget (http://devmon.dev.schwab.com/index.html)
resize2fs /dev/myvg/homevol
e2fsadm
17. The main Squid configuration file is ____/squid.conf
/etc/squid/
rpm -V
mke2fs
htpasswd -c /etc/httpd/webpass e
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
telnetd : ALL EXCEPT 192.168.1.10
service vsftpd status
showmount -a
chkconfig --level 35 httpd on
19. 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)
e2fsadm
-i
(rpm -q)p file (for rpmfile name)
5
20. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
parted /dev/hda print
21. ____ can expand and shrink ext2 and ext3 file systems
elinks
/etc/lvmtab
parted; check x
resize2fs
22. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
squid -z
ServerAdmin
chcon -R -t httpd_sys_content_t /home/michael/public_html
filesystem type is not ext2 or ext3
23. ;'___ /var/www' will tell you the ACL settings of /var/www
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V zip
parted; check x
ls -Z
24. When you configure Squid on your system - you need to allow access through appropriate ports and SELinux settings. The simplest approach with respect to Squid configuration assumes that all clients use the default Squid port 3128 - using TCP - where
(rpm -q)p file (for rpmfile name)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
chmod 705
iptables
25. 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
rpm -V pam
AllowOverride
5
26. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
fdisk
wget (http://devmon.dev.schwab.com/index.html)
rpm -V
yum -y update httpd
27. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
rpm -V
elinks
showmount -e
select (followed by the device name such as /dev/hdb)
28. Apache supports security by specifying active ports through the Listen and ____ directives.
example
NameVirtualHost
squid -z
rpm -V pam
29. rpm ____ verifies all installed rpms against the rpm database
yum -y update httpd
rpm -Va
wget (http://devmon.dev.schwab.com/index.html)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
30. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
yum clean all
/etc/squid/
rpm -ivh --replacepkgs xxxx*
31. 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
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
(rpm -q)p file (for rpmfile name)
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerTokens OS from http.conf
32. ___ to update the httpd package - automatically answering yes to all the questions
htpasswd -c /etc/httpd/webpass e
rpm -V pam
--import file
yum -y update httpd
33. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
bootable partitions
setsebool -P squid_connect_any 1
rpm -ivh --replacepkgs xxxx*
34. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
/etc/squid/
showmount -a
mke2fs
fdisk -l
35. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
service vsftpd status
(rpm -q)p file (for rpmfile name)
/etc/squid/
36. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ls -Z
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
e2fsadm
rpm -ivh --replacepkgs xxxx*
37. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
-i (do not use -U or -F!)
resize2fs
rpm -V
ok
38. use grep to count how many repositories have been configured in the file server1.repo
rpm -V
chmod 705
rpm -Va
grep "[.*]" server1.repo
39. You can use the ____ tool after installation to add any package groups that you missed.
pirut
NameVirtualHost
5
CustomLog
40. after you edit /etc/exports - run service ___ stop...
nfs
showmount -e
resize2fs
DocumentRoot
41. Create a disk label for the partition table called k
hkconfig --list httpd
yum install mod_ssl squid
dumpe2fs
arted; mklabel k
42. Virtual Host Configuration: Names the URL for the virtual host.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
-l
ls -Z
ServerName
43. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
select (followed by the device name such as /dev/hdb)
NameVirtualHost
showmount -a
htpasswd -c /etc/httpd/webpass e
44. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
elinks
resize2fs
fdisk -l
hkconfig --list httpd
45. how to install both mod_ssl and squid packages
yum install mod_ssl squid
rpm -qc httpd
ls -Z
NameVirtualHost
46. Virtual Host Configuration: Sets a root directory for the virtual host.
parted /dev/hda print
(rpm -q)p file (for rpmfile name)
CustomLog
DocumentRoot
47. 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)
pirut
filesystem type is not ext2 or ext3
CustomLog
-i (do not use -U or -F!)
48. ___ shows me what config files were installed when the httpd package was installed
NameVirtualHost
rpm -qc httpd
showmount -a
rpm -ivh --replacepkgs xxxx*
49. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
squid -z
ServerTokens OS from http.conf
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
filesystem type is not ext2 or ext3
50. ___________ can be on a RAID device
chcon -R -t httpd_sys_content_t /home/michael/public_html
bootable partitions
select (followed by the device name such as /dev/hdb)
parted; check x