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. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
resize2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
fdisk
bootable partitions
2. ___ to update the httpd package - automatically answering yes to all the questions
nfs
parted; check x
ServerTokens OS from http.conf
yum -y update httpd
3. ____.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.
NameVirtualHost
example
rpm -V zip
e2fsadm
4. Virtual Host Configuration: Sets a root directory for the virtual host.
e2fsadm
DocumentRoot
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update httpd
5. 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
setsebool -P squid_connect_any 1
ServerName
ok
5
6. 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.
htpasswd -c /etc/httpd/webpass e
iptables -F
rpm -V
rpm -ivh --replacepkgs xxxx*
7. The simplest way to install Apache
yum install httpd
iptables
5
showmount -e
8. rpm ____ verifies the installed zip rpm against the rpm database
rpm -V zip
NameVirtualHost
-K
-l
9. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
chmod 705
ServerAdmin
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
5
10. ;'___ /var/www' will tell you the ACL settings of /var/www
iptables -F
rpm -V zip
ls -Z
wget (http://devmon.dev.schwab.com/index.html)
11. rpm ____ [name of package] to verify the package - once you have manually imported the key
-K
rpm -ivh --replacepkgs xxxx*
resize2fs /dev/myvg/homevol
rpm -V pam
12. ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V pam
-i (do not use -U or -F!)
e2fsadm
nfs
13. ___________ can be on a RAID device
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -qc httpd
bootable partitions
arted; mklabel k
14. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
NameVirtualHost
bootable partitions
parted; check x
5
15. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
bootable partitions
mke2fs
yum update kernel
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:
htpasswd -c /etc/httpd/webpass e
/etc/squid/
grep "[.*]" server1.repo
DocumentRoot
17. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
tune2fs
example
select (followed by the device name such as /dev/hdb)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
18. 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
rpm -Va
telnetd : ALL EXCEPT 192.168.1.10
resize2fs /dev/myvg/homevol
fdisk
19. _____ will change the size of /dev/rootvg/tmplv to 4 gig
lvextend -L4G /dev/rootvg/tmplv
rpm -V pam
iptables -F
AllowOverride
20. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
NameVirtualHost
AllowOverride
21. You ran "e2label /dev/sda" and got "bad magic number" Why?
filesystem type is not ext2 or ext3
elinks
bootable partitions
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
22. The rpm ____ option installs the package - if it isn't already installed.
-i
elinks
-K
LVM
23. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
/boot
DocumentRoot
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
24. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
-l
setsebool -P htttpd.enable.homedirs 1
parted /dev/hda print
ErrorLog
25. 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:
showmount -e
nfs
service vsftpd status
/etc/lvmtab
26. Run the ____ command to find the device associated with the USB key.
ServerAdmin
fdisk -l
chkconfig --level 35 httpd on
parted; check x
27. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
parted; check x
wget (http://devmon.dev.schwab.com/index.html)
hkconfig --list httpd
28. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
ok
5
hkconfig --list httpd
rpm -V zip
29. The main Squid configuration file is ____/squid.conf
elinks
/etc/squid/
lvdisplay -D /dev/rootvg/tmplv
fdisk -l
30. You can use the ____ tool after installation to add any package groups that you missed.
tune2fs
-K
pirut
-i (do not use -U or -F!)
31. 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
filesystem type is not ext2 or ext3
rpm -V pam
-i
32. ____ can expand and shrink ext2 and ext3 file systems
fdisk -l
dumpe2fs
pirut
resize2fs
33. To check status of ftp daemon
select (followed by the device name such as /dev/hdb)
rpm -V zip
ls -Z
service vsftpd status
34. 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)
-i (do not use -U or -F!)
resize2fs
ls -Z
35. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
resize2fs /dev/myvg/homevol
/etc/squid/
ServerTokens OS from http.conf
chmod 701
36. The file that might contain: oldvg - rootvg - etc.
chkconfig --level 35 httpd on
fdisk -l
/etc/lvmtab
showmount -e
37. Perform a simple check of the file system. minor-num is x.
/etc/lvmtab
parted; check x
yum install mod_ssl squid
chkconfig --level 35 httpd on
38. rpm ____ to import the rpm key for integrity checking
yum update kernel
--import file
iptables
bootable partitions
39. ____ is used to modify file system parameters
tune2fs
elinks
grep "[.*]" server1.repo
nfs
40. 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
mke2fs
ServerAdmin
dumpe2fs
41. Apache supports security by specifying active ports through the Listen and ____ directives.
fdisk -l
parted; check x
NameVirtualHost
showmount -a
42. 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:
lvextend -L4G /dev/rootvg/tmplv
resize2fs /dev/myvg/homevol
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
chmod 701
43. ____ configuration is not available via text mode RHEL installation.
iptables
fdisk -l
iptables -F
LVM
44. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
chmod 705
resize2fs
resize2fs /dev/myvg/homevol
fdisk -l
45. ____ prints superblock and block group information.
dumpe2fs
ls -Z
-i (do not use -U or -F!)
showmount -e
46. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
ok
chkconfig --level 35 httpd on
/etc/lvmtab
/boot
47. 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
ServerName
-i (do not use -U or -F!)
arted; mklabel k
iptables
48. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
resize2fs /dev/myvg/homevol
5
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
49. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
--import file
rpm -Va
mke2fs
select (followed by the device name such as /dev/hdb)
50. 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
-i (do not use -U or -F!)
/boot
bootable partitions
filesystem type is not ext2 or ext3