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