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. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
(rpm -q)p file (for rpmfile name)
lvdisplay -D /dev/rootvg/tmplv
dumpe2fs
AllowOverride
2. 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 - and PHP. Sharing this
/etc/lvmtab
filesystem type is not ext2 or ext3
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
ServerTokens OS from http.conf
3. Virtual Host Configuration: Sets a root directory for the virtual host.
fdisk -l
CustomLog
DocumentRoot
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
4. ___ to update the httpd package - automatically answering yes to all the questions
yum clean all
elinks
DocumentRoot
yum -y update httpd
5. 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
rpm -ivh --replacepkgs xxxx*
lvextend -L4G /dev/rootvg/tmplv
parted /dev/hda print
AllowOverride
6. 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
CustomLog
nfs
iptables
rpm -qc httpd
7. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
select (followed by the device name such as /dev/hdb)
dumpe2fs
iptables
8. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
fdisk -l
-i
yum install httpd
dd if=./diskboot.img of=/dev/sdc
9. ;'___ /var/www' will tell you the ACL settings of /var/www
chkconfig --level 35 httpd on
grep "[.*]" server1.repo
ls -Z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
10. The simplest way to install Apache
lvextend -L4G /dev/rootvg/tmplv
yum -y update httpd
yum install httpd
-i (do not use -U or -F!)
11. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
(rpm -q)p file (for rpmfile name)
ServerAdmin
5
DocumentRoot
12. The rpm ____ option installs the package - if it isn't already installed.
pirut
-i
nfs
fdisk
13. 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:
parted; check x
showmount -e
parted /dev/hda print
rpm -ivh --replacepkgs xxxx*
14. 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.
select (followed by the device name such as /dev/hdb)
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)
15. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
fdisk
hkconfig --list httpd
grep "[.*]" server1.repo
wget (http://devmon.dev.schwab.com/index.html)
16. ____ is used to modify file system parameters
tune2fs
CustomLog
htpasswd -c /etc/httpd/webpass e
fdisk -l
17. 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
fdisk -l
-l
service vsftpd status
18. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
mke2fs
elinks
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
fdisk -l
19. rpm ____ to install kernel updates
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
-i (do not use -U or -F!)
e2fsadm
iptables
20. ____.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.
chkconfig --level 35 httpd on
bootable partitions
example
tune2fs
21. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
rpm -V
arted; mklabel k
fdisk
22. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
parted; check x
example
-i
23. 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
ok
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
DocumentRoot
24. ___ shows me what config files were installed when the httpd package was installed
parted /dev/hda print
setsebool -P squid_connect_any 1
rpm -qc httpd
lvextend -L4G /dev/rootvg/tmplv
25. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
telnetd : ALL EXCEPT 192.168.1.10
yum clean all
yum -y update httpd
26. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
e2fsadm
DocumentRoot
5
yum update kernel
27. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
hkconfig --list httpd
telnetd : ALL EXCEPT 192.168.1.10
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
28. 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:
fdisk -l
-i (do not use -U or -F!)
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
NameVirtualHost
29. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
showmount -e
NameVirtualHost
rpm -ivh --replacepkgs xxxx*
setsebool -P squid_connect_any 1
30. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
tune2fs
fdisk -l
31. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
chcon -R -t httpd_sys_content_t /home/michael/public_html
select (followed by the device name such as /dev/hdb)
AllowOverride
-i (do not use -U or -F!)
32. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
fdisk -l
-i (do not use -U or -F!)
elinks
chmod 701
33. Create a disk label for the partition table called k
(rpm -q)p file (for rpmfile name)
arted; mklabel k
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
hkconfig --list httpd
34. ____ is used for creating ext2 and ext3 file systems
ls -Z
mke2fs
iptables -F
chmod 701
35. Apache supports security by specifying active ports through the Listen and ____ directives.
resize2fs
iptables
chmod 701
NameVirtualHost
36. The main Squid configuration file is ____/squid.conf
yum clean all
example
wget (http://devmon.dev.schwab.com/index.html)
/etc/squid/
37. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
setsebool -P htttpd.enable.homedirs 1
rpm -qc httpd
38. 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 ____
dd if=./diskboot.img of=/dev/sdc
mke2fs
elinks
squid -z
39. 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:
htpasswd -c /etc/httpd/webpass e
ls -Z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install mod_ssl squid
40. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
/boot
bootable partitions
chmod 705
NameVirtualHost
41. Perform a simple check of the file system. minor-num is x.
telnetd : ALL EXCEPT 192.168.1.10
dd if=./diskboot.img of=/dev/sdc
/boot
parted; check x
42. use parted to display disk geometry for /dev/hda and end up in shell
ErrorLog
fdisk -l
yum clean all
parted /dev/hda print
43. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
htpasswd -c /etc/httpd/webpass e
grep "[.*]" server1.repo
wget (http://devmon.dev.schwab.com/index.html)
chmod 705
44. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
ok
fdisk
filesystem type is not ext2 or ext3
/boot
45. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
-i
rpm -V
AllowOverride
46. Run the ____ command to find the device associated with the USB key.
fdisk -l
(rpm -q)p file (for rpmfile name)
ErrorLog
resize2fs
47. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
arted; mklabel k
-i
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
htpasswd -c /etc/httpd/webpass e
48. You can use the ____ tool after installation to add any package groups that you missed.
-i
pirut
ServerName
arted; mklabel k
49. ____ prints superblock and block group information.
iptables
dumpe2fs
yum install mod_ssl squid
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
50. 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
parted /dev/hda print
fdisk
select (followed by the device name such as /dev/hdb)
chcon -R -t httpd_sys_content_t /home/michael/public_html