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. create the basic cache directories in /var/spool/squid with the following command:
yum install mod_ssl squid
rpm -V pam
fdisk
squid -z
2. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
squid -z
resize2fs /dev/myvg/homevol
fdisk -l
DocumentRoot
3. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
resize2fs /dev/myvg/homevol
fdisk -l
rpm -Va
wget (http://devmon.dev.schwab.com/index.html)
4. ___________ can be on a RAID device
fdisk
fdisk -l
parted; check x
bootable partitions
5. 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)
htpasswd -c /etc/httpd/webpass e
filesystem type is not ext2 or ext3
CustomLog
parted; check x
6. 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)
LVM
e2fsadm
rpm -ivh --replacepkgs xxxx*
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
7. rpm ____ to install kernel updates
-l
-i (do not use -U or -F!)
resize2fs /dev/myvg/homevol
iptables -F
8. rpm option to show me the package files
telnetd : ALL EXCEPT 192.168.1.10
yum install mod_ssl squid
-l
fdisk -l
9. Apache supports security by specifying active ports through the Listen and ____ directives.
chmod 705
-i
NameVirtualHost
resize2fs
10. ____ is used to modify file system parameters
rpm -V zip
telnetd : ALL EXCEPT 192.168.1.10
tune2fs
example
11. rpm ____ verifies all installed rpms against the rpm database
dumpe2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
parted; check x
rpm -Va
12. The rpm ____ option installs the package - if it isn't already installed.
wget (http://devmon.dev.schwab.com/index.html)
yum update kernel
-K
-i
13. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
chmod 701
chcon -R -t httpd_sys_content_t /home/michael/public_html
hkconfig --list httpd
14. 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 install httpd
-i
htpasswd -c /etc/httpd/webpass e
15. 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.
--import file
iptables -F
bootable partitions
yum install httpd
16. 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:
nfs
chcon -R -t httpd_sys_content_t /home/michael/public_html
dd if=./diskboot.img of=/dev/sdc
htpasswd -c /etc/httpd/webpass e
17. 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:
yum install httpd
-K
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
18. 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
iptables
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
fdisk -l
NameVirtualHost
19. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -t httpd_sys_content_t /home/michael/public_html
(rpm -q)p file (for rpmfile name)
dumpe2fs
20. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
parted; check x
pirut
e2fsadm
21. ____ can expand and shrink ext2 and ext3 file systems
/etc/lvmtab
resize2fs
select (followed by the device name such as /dev/hdb)
chmod 705
22. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
rpm -ivh --replacepkgs xxxx*
chmod 705
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-l
23. This line placed in /etc/hosts.deny sends a customized error message for Telnet users on the crack.org domain saying sorry [insert client info] - access denied
rpm -V zip
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
bootable partitions
DocumentRoot
24. 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
yum update kernel
rpm -V
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/boot
25. 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
resize2fs
yum update kernel
/boot
/etc/lvmtab
26. 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
AllowOverride
chcon -R -t httpd_sys_content_t /home/michael/public_html
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
27. ;'___ /var/www' will tell you the ACL settings of /var/www
DocumentRoot
(rpm -q)p file (for rpmfile name)
showmount -e
ls -Z
28. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
5
yum clean all
showmount -a
LVM
29. 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
example
telnetd : ALL EXCEPT 192.168.1.10
dumpe2fs
tune2fs
30. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
iptables
filesystem type is not ext2 or ext3
setsebool -P htttpd.enable.homedirs 1
chmod 701
31. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
mke2fs
fdisk -l
grep "[.*]" server1.repo
arted; mklabel k
32. You ran "e2label /dev/sda" and got "bad magic number" Why?
ErrorLog
pirut
filesystem type is not ext2 or ext3
lvextend -L4G /dev/rootvg/tmplv
33. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
fdisk
showmount -e
-l
select (followed by the device name such as /dev/hdb)
34. 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:
-K
showmount -e
rpm -Va
telnetd : ALL EXCEPT 192.168.1.10
35. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
ErrorLog
NameVirtualHost
select (followed by the device name such as /dev/hdb)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
36. ___ shows me what config files were installed when the httpd package was installed
iptables -F
wget (http://devmon.dev.schwab.com/index.html)
NameVirtualHost
rpm -qc httpd
37. ___ will tell me if any files in the pam package have changed since it was first installed
filesystem type is not ext2 or ext3
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
rpm -V pam
yum update kernel
38. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
lvdisplay -D /dev/rootvg/tmplv
fdisk
39. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
chmod 705
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
resize2fs
chkconfig --level 35 httpd on
40. Perform a simple check of the file system. minor-num is x.
ErrorLog
parted; check x
/etc/lvmtab
squid -z
41. The simplest way to install Apache
rpm -Va
-i (do not use -U or -F!)
bootable partitions
yum install httpd
42. The main Squid configuration file is ____/squid.conf
/etc/squid/
yum -y update httpd
grep "[.*]" server1.repo
-i
43. To list under which run levels the web service will start
hkconfig --list httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
tune2fs
htpasswd -c /etc/httpd/webpass e
44. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
-i
ErrorLog
ok
resize2fs /dev/myvg/homevol
45. 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.
setsebool -P htttpd.enable.homedirs 1
rpm -V
lvdisplay -D /dev/rootvg/tmplv
ls -Z
46. Run the ____ command to find the device associated with the USB key.
5
setsebool -P squid_connect_any 1
fdisk -l
yum update kernel
47. use grep to count how many repositories have been configured in the file server1.repo
grep "[.*]" server1.repo
-l
iptables
rpm -V zip
48. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
resize2fs /dev/myvg/homevol
chkconfig --level 35 httpd on
rpm -qc httpd
(rpm -q)p file (for rpmfile name)
49. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
dumpe2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
(rpm -q)p file (for rpmfile name)
50. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
NameVirtualHost
dd if=./diskboot.img of=/dev/sdc
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i (do not use -U or -F!)