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. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
rpm -V zip
chmod 705
-K
setsebool -P htttpd.enable.homedirs 1
2. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
-l
ServerAdmin
chmod 701
NameVirtualHost
3. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
chmod 705
yum update kernel
AllowOverride
4. ____.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.
yum clean all
fdisk -l
example
iptables -F
5. after you edit /etc/exports - run service ___ stop...
-l
nfs
grep "[.*]" server1.repo
LVM
6. ____ configuration is not available via text mode RHEL installation.
/etc/lvmtab
resize2fs /dev/myvg/homevol
yum install httpd
LVM
7. 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)
fdisk -l
NameVirtualHost
CustomLog
setsebool -P squid_connect_any 1
8. The main Squid configuration file is ____/squid.conf
lvextend -L4G /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
squid -z
/etc/squid/
9. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
ServerName
chmod 705
hkconfig --list httpd
ls -Z
10. Create a disk label for the partition table called k
yum clean all
arted; mklabel k
iptables -F
dumpe2fs
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:
yum -y update httpd
showmount -e
yum install mod_ssl squid
e2fsadm
12. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
wget (http://devmon.dev.schwab.com/index.html)
parted; check x
ErrorLog
yum clean all
13. 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
resize2fs /dev/myvg/homevol
-l
iptables
telnetd : ALL EXCEPT 192.168.1.10
14. ____ can expand and shrink ext2 and ext3 file systems
grep "[.*]" server1.repo
htpasswd -c /etc/httpd/webpass e
resize2fs
--import file
15. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
resize2fs
mke2fs
dumpe2fs
ok
16. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
NameVirtualHost
/etc/squid/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
17. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
filesystem type is not ext2 or ext3
yum install httpd
NameVirtualHost
18. 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 -t httpd_sys_content_t /home/michael/public_html
5
service vsftpd status
NameVirtualHost
19. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
e2fsadm
nfs
fdisk
20. rpm ____ verifies all installed rpms against the rpm database
pirut
wget (http://devmon.dev.schwab.com/index.html)
rpm -Va
parted /dev/hda print
21. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ServerAdmin
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)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
22. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
CustomLog
ServerName
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
23. ____ is used to modify file system parameters
tune2fs
elinks
/etc/lvmtab
rpm -qc httpd
24. how to install both mod_ssl and squid packages
ServerName
lvextend -L4G /dev/rootvg/tmplv
/boot
yum install mod_ssl squid
25. 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 ____
(rpm -q)p file (for rpmfile name)
ls -Z
elinks
/boot
26. To check status of ftp daemon
service vsftpd status
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm -V pam
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
27. The file that might contain: oldvg - rootvg - etc.
chmod 701
ls -Z
fdisk
/etc/lvmtab
28. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
mke2fs
wget (http://devmon.dev.schwab.com/index.html)
NameVirtualHost
yum install httpd
29. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
(rpm -q)p file (for rpmfile name)
lvextend -L4G /dev/rootvg/tmplv
5
rpm -Va
30. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
elinks
htpasswd -c /etc/httpd/webpass e
rpm -V
31. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
arted; mklabel k
NameVirtualHost
nfs
/boot
32. ___ to update the httpd package - automatically answering yes to all the questions
wget (http://devmon.dev.schwab.com/index.html)
ErrorLog
yum -y update httpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
33. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
--import file
-i (do not use -U or -F!)
chmod 701
hkconfig --list httpd
34. 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
wget (http://devmon.dev.schwab.com/index.html)
-i (do not use -U or -F!)
ServerTokens OS from http.conf
35. You just finished editing your /etc/yum.repos.d/*repo file and want yum to use the new info - so you run ____
ServerTokens OS from http.conf
tune2fs
rpm -V zip
yum clean all
36. rpm ____ [name of package] to verify the package - once you have manually imported the key
/etc/lvmtab
dd if=./diskboot.img of=/dev/sdc
-K
resize2fs
37. 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
parted; check x
AllowOverride
yum install mod_ssl squid
NameVirtualHost
38. use grep to count how many repositories have been configured in the file server1.repo
yum install mod_ssl squid
pirut
grep "[.*]" server1.repo
elinks
39. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
yum update kernel
select (followed by the device name such as /dev/hdb)
chkconfig --level 35 httpd on
hkconfig --list httpd
40. 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
lvdisplay -D /dev/rootvg/tmplv
/boot
showmount -a
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
41. 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
mke2fs
telnetd : ALL EXCEPT 192.168.1.10
CustomLog
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
42. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
ServerAdmin
rpm -ivh --replacepkgs xxxx*
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
(rpm -q)p file (for rpmfile name)
43. use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
iptables -F
setsebool -P squid_connect_any 1
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
44. The rpm ____ option installs the package - if it isn't already installed.
-i
/etc/squid/
-l
service vsftpd status
45. rpm option to show me the package files
-l
mke2fs
DocumentRoot
fdisk
46. 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
chcon -R -t httpd_sys_content_t /home/michael/public_html
tune2fs
nfs
47. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
parted /dev/hda print
chkconfig --level 35 httpd on
ErrorLog
48. rpm ____ to import the rpm key for integrity checking
example
yum install mod_ssl squid
--import file
ServerTokens OS from http.conf
49. 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
grep "[.*]" server1.repo
filesystem type is not ext2 or ext3
yum update kernel
NameVirtualHost
50. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
dd if=./diskboot.img of=/dev/sdc
htpasswd -c /etc/httpd/webpass e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
-K