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. use grep to count how many repositories have been configured in the file server1.repo
grep "[.*]" server1.repo
arted; mklabel k
rpm -Va
lvextend -L4G /dev/rootvg/tmplv
2. ____ configuration is not available via text mode RHEL installation.
parted; check x
grep "[.*]" server1.repo
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
LVM
3. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
hkconfig --list httpd
-i (do not use -U or -F!)
select (followed by the device name such as /dev/hdb)
ErrorLog
4. 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
ls -Z
select (followed by the device name such as /dev/hdb)
setsebool -P htttpd.enable.homedirs 1
ServerTokens OS from http.conf
5. 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
ServerAdmin
mke2fs
e2fsadm
6. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
lvdisplay -D /dev/rootvg/tmplv
rpm -ivh --replacepkgs xxxx*
chcon -R -t httpd_sys_content_t /home/michael/public_html
hkconfig --list httpd
7. Virtual Host Configuration: Sets a root directory for the virtual host.
iptables -F
ErrorLog
DocumentRoot
(rpm -q)p file (for rpmfile name)
8. ____ can expand and shrink ext2 and ext3 file systems
filesystem type is not ext2 or ext3
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
fdisk -l
resize2fs
9. Perform a simple check of the file system. minor-num is x.
rpm -qc httpd
parted; check x
yum -y update httpd
example
10. 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
pirut
chmod 705
arted; mklabel k
11. ___________ can be on a RAID device
service vsftpd status
example
bootable partitions
telnetd : ALL EXCEPT 192.168.1.10
12. 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
-i
/boot
resize2fs /dev/myvg/homevol
telnetd : ALL EXCEPT 192.168.1.10
13. The rpm ____ option installs the package - if it isn't already installed.
-i (do not use -U or -F!)
-K
tune2fs
-i
14. 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
--import file
/etc/squid/
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chmod 705
15. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
squid -z
yum install mod_ssl squid
ServerAdmin
arted; mklabel k
16. 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 -ivh --replacepkgs xxxx*
setsebool -P squid_connect_any 1
rpm -V
chcon -R -t httpd_sys_content_t /home/michael/public_html
17. Apache supports security by specifying active ports through the Listen and ____ directives.
ServerTokens OS from http.conf
e2fsadm
NameVirtualHost
filesystem type is not ext2 or ext3
18. 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
pirut
/boot
rpm -V pam
19. The main Squid configuration file is ____/squid.conf
/etc/squid/
filesystem type is not ext2 or ext3
mke2fs
rpm -V zip
20. ;'___ /var/www' will tell you the ACL settings of /var/www
iptables -F
-l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ls -Z
21. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
dd if=./diskboot.img of=/dev/sdc
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm -ivh --replacepkgs xxxx*
filesystem type is not ext2 or ext3
22. ___ to update the httpd package - automatically answering yes to all the questions
/etc/squid/
yum -y update httpd
showmount -e
yum install mod_ssl squid
23. ___ shows me what config files were installed when the httpd package was installed
ErrorLog
rpm -qc httpd
grep "[.*]" server1.repo
rpm -V
24. ___ will tell me if any files in the pam package have changed since it was first installed
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
grep "[.*]" server1.repo
rpm -V pam
yum install mod_ssl squid
25. The simplest way to install Apache
yum install httpd
NameVirtualHost
5
-i (do not use -U or -F!)
26. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
showmount -e
ErrorLog
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
fdisk
27. 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:
setsebool -P htttpd.enable.homedirs 1
htpasswd -c /etc/httpd/webpass e
arted; mklabel k
DocumentRoot
28. rpm ____ to import the rpm key for integrity checking
resize2fs /dev/myvg/homevol
--import file
fdisk -l
/etc/lvmtab
29. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
setsebool -P squid_connect_any 1
yum -y update httpd
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
30. To list under which run levels the web service will start
hkconfig --list httpd
ErrorLog
ServerAdmin
setsebool -P squid_connect_any 1
31. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
iptables
rpm -ivh --replacepkgs xxxx*
setsebool -P squid_connect_any 1
e2fsadm
32. rpm ____ to install kernel updates
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
LVM
pirut
-i (do not use -U or -F!)
33. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
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
ErrorLog
fdisk -l
34. Run the ____ command to find the device associated with the USB key.
fdisk -l
yum install httpd
rpm -V zip
service vsftpd status
35. how to install both mod_ssl and squid packages
yum install mod_ssl squid
-K
select (followed by the device name such as /dev/hdb)
chmod 701
36. rpm ____ [name of package] to verify the package - once you have manually imported the key
/etc/squid/
-K
grep "[.*]" server1.repo
pirut
37. You ran "e2label /dev/sda" and got "bad magic number" Why?
filesystem type is not ext2 or ext3
-K
bootable partitions
chmod 701
38. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum clean all
resize2fs /dev/myvg/homevol
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
39. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
fdisk
ErrorLog
dd if=./diskboot.img of=/dev/sdc
40. To check status of ftp daemon
showmount -a
service vsftpd status
example
rpm -V
41. create the basic cache directories in /var/spool/squid with the following command:
(rpm -q)p file (for rpmfile name)
fdisk -l
squid -z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
42. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
showmount -a
-i
dumpe2fs
setsebool -P squid_connect_any 1
43. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
mke2fs
iptables
wget (http://devmon.dev.schwab.com/index.html)
squid -z
44. Create a disk label for the partition table called k
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
arted; mklabel k
DocumentRoot
yum update kernel
45. You can use the ____ tool after installation to add any package groups that you missed.
iptables -F
yum update kernel
dumpe2fs
pirut
46. 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:
DocumentRoot
parted; check x
showmount -e
--import file
47. 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)
setsebool -P htttpd.enable.homedirs 1
CustomLog
--import file
rpm -V
48. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
rpm -qc httpd
rpm -Va
NameVirtualHost
dumpe2fs
49. rpm option to show me the package files
parted /dev/hda print
NameVirtualHost
-l
AllowOverride
50. ____.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.
example
telnetd : ALL EXCEPT 192.168.1.10
rpm -Va
ErrorLog