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 most straightforward way to make sure Apache starts in bootlevels 3 and 5
CustomLog
lvdisplay -D /dev/rootvg/tmplv
example
chkconfig --level 35 httpd on
2. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
chkconfig --level 35 httpd on
yum -y update httpd
e2fsadm
3. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -V pam
rpm -V zip
4. 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
fdisk -l
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
chcon -R -t httpd_sys_content_t /home/michael/public_html
AllowOverride
5. 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
yum install mod_ssl squid
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V zip
iptables
6. create the basic cache directories in /var/spool/squid with the following command:
select (followed by the device name such as /dev/hdb)
CustomLog
DocumentRoot
squid -z
7. 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
ls -Z
CustomLog
telnetd : ALL EXCEPT 192.168.1.10
ServerAdmin
8. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
setsebool -P squid_connect_any 1
dd if=./diskboot.img of=/dev/sdc
tune2fs
ls -Z
9. The main Squid configuration file is ____/squid.conf
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk
/etc/squid/
rpm -V
10. To check status of ftp daemon
chmod 701
service vsftpd status
ok
setsebool -P htttpd.enable.homedirs 1
11. To list under which run levels the web service will start
yum -y update httpd
showmount -a
hkconfig --list httpd
ErrorLog
12. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
ok
hkconfig --list httpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted; check x
13. rpm ____ verifies the installed zip rpm against the rpm database
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
elinks
rpm -V zip
telnetd : ALL EXCEPT 192.168.1.10
14. 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:
e2fsadm
htpasswd -c /etc/httpd/webpass e
lvextend -L4G /dev/rootvg/tmplv
tune2fs
15. rpm ____ verifies all installed rpms against the rpm database
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
5
dd if=./diskboot.img of=/dev/sdc
rpm -Va
16. rpm ____ to import the rpm key for integrity checking
rpm -V zip
--import file
ls -Z
tune2fs
17. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
LVM
18. 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.
grep "[.*]" server1.repo
NameVirtualHost
fdisk -l
rpm -V
19. You can use the ____ tool after installation to add any package groups that you missed.
iptables -F
example
pirut
rpm -Va
20. 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
ErrorLog
fdisk
ok
21. 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
-i (do not use -U or -F!)
nfs
ServerTokens OS from http.conf
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
22. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm -ivh --replacepkgs xxxx*
NameVirtualHost
(rpm -q)p file (for rpmfile name)
grep "[.*]" server1.repo
23. The rpm ____ option installs the package - if it isn't already installed.
rpm -ivh --replacepkgs xxxx*
hkconfig --list httpd
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
-i
24. 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:
rpm -V pam
showmount -e
ok
tune2fs
25. 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
select (followed by the device name such as /dev/hdb)
showmount -e
LVM
setsebool -P squid_connect_any 1
26. 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)
htpasswd -c /etc/httpd/webpass e
iptables -F
lvdisplay -D /dev/rootvg/tmplv
27. 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
/etc/lvmtab
yum update kernel
rpm -V pam
--import file
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
/etc/squid/
/boot
rpm -ivh --replacepkgs xxxx*
htpasswd -c /etc/httpd/webpass e
29. ____ is used to modify file system parameters
elinks
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
setsebool -P squid_connect_any 1
tune2fs
30. ;'___ /var/www' will tell you the ACL settings of /var/www
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum install httpd
dd if=./diskboot.img of=/dev/sdc
ls -Z
31. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
parted; check x
service vsftpd status
(rpm -q)p file (for rpmfile name)
rpm -V pam
32. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
dumpe2fs
CustomLog
LVM
lvdisplay -D /dev/rootvg/tmplv
33. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
LVM
/etc/squid/
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
34. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
nfs
fdisk -l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-K
35. rpm option to show me the package files
setsebool -P htttpd.enable.homedirs 1
service vsftpd status
chmod 701
-l
36. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
/etc/lvmtab
dumpe2fs
yum clean all
37. ___ shows me what config files were installed when the httpd package was installed
LVM
NameVirtualHost
/etc/lvmtab
rpm -qc httpd
38. ____ prints superblock and block group information.
dumpe2fs
/etc/squid/
dd if=./diskboot.img of=/dev/sdc
parted; check x
39. use parted to display disk geometry for /dev/hda and end up in shell
mke2fs
tune2fs
parted /dev/hda print
fdisk -l
40. how to install both mod_ssl and squid packages
chkconfig --level 35 httpd on
rpm -V pam
yum install mod_ssl squid
ok
41. Apache supports security by specifying active ports through the Listen and ____ directives.
NameVirtualHost
squid -z
setsebool -P htttpd.enable.homedirs 1
chkconfig --level 35 httpd on
42. ___ to update the httpd package - automatically answering yes to all the questions
wget (http://devmon.dev.schwab.com/index.html)
yum -y update httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
arted; mklabel k
43. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
rpm -qc httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ok
CustomLog
44. ____ configuration is not available via text mode RHEL installation.
pirut
LVM
yum install mod_ssl squid
5
45. rpm ____ [name of package] to verify the package - once you have manually imported the key
AllowOverride
yum install mod_ssl squid
arted; mklabel k
-K
46. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
yum -y update httpd
AllowOverride
ErrorLog
chcon -R -t httpd_sys_content_t /home/michael/public_html
47. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
showmount -a
service vsftpd status
resize2fs /dev/myvg/homevol
48. Run the ____ command to find the device associated with the USB key.
parted; check x
chkconfig --level 35 httpd on
fdisk -l
yum update kernel
49. 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 ____
elinks
setsebool -P squid_connect_any 1
ServerAdmin
parted /dev/hda print
50. ____ is used for creating ext2 and ext3 file systems
arted; mklabel k
mke2fs
nfs
grep "[.*]" server1.repo