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 ____ [name of package] to verify the package - once you have manually imported the key
yum clean all
ServerAdmin
grep "[.*]" server1.repo
-K
2. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
dd if=./diskboot.img of=/dev/sdc
telnetd : ALL EXCEPT 192.168.1.10
ok
setsebool -P htttpd.enable.homedirs 1
3. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ServerAdmin
ls -Z
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i
4. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
chmod 701
bootable partitions
setsebool -P htttpd.enable.homedirs 1
ServerName
5. It's much more difficult and much more time-consuming to revise partitions with utilities such as ____ or parted after RHEL is installed.
yum update kernel
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
fdisk
6. 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
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
mke2fs
AllowOverride
ErrorLog
7. The simplest way to install Apache
-i (do not use -U or -F!)
yum install httpd
(rpm -q)p file (for rpmfile name)
dumpe2fs
8. The rpm ____ option installs the package - if it isn't already installed.
-i
ok
bootable partitions
parted; check x
9. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
yum install mod_ssl squid
rpm -V
tune2fs
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
10. Create a disk label for the partition table called k
arted; mklabel k
ErrorLog
rpm -V
(rpm -q)p file (for rpmfile name)
11. You just finished editing your /etc/yum.repos.d/*repo file and want yum to use the new info - so you run ____
fdisk
rpm -V
NameVirtualHost
yum clean all
12. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
LVM
ServerTokens OS from http.conf
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
resize2fs
13. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
bootable partitions
showmount -a
telnetd : ALL EXCEPT 192.168.1.10
arted; mklabel k
14. 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 ____
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
elinks
15. ____ is used for creating ext2 and ext3 file systems
mke2fs
resize2fs
rpm -Va
LVM
16. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
showmount -a
elinks
select (followed by the device name such as /dev/hdb)
parted; check x
17. ___ will tell me if any files in the pam package have changed since it was first installed
rpm -V pam
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
ok
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
18. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
chkconfig --level 35 httpd on
fdisk -l
-i (do not use -U or -F!)
wget (http://devmon.dev.schwab.com/index.html)
19. To check status of ftp daemon
elinks
-l
service vsftpd status
(rpm -q)p file (for rpmfile name)
20. Run the ____ command to find the device associated with the USB key.
fdisk
AllowOverride
fdisk -l
resize2fs /dev/myvg/homevol
21. Perform a simple check of the file system. minor-num is x.
parted; check x
squid -z
bootable partitions
fdisk -l
22. rpm ____ to import the rpm key for integrity checking
--import file
chmod 705
-i (do not use -U or -F!)
ok
23. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
iptables -F
chmod 701
squid -z
setsebool -P htttpd.enable.homedirs 1
24. ___ to update the httpd package - automatically answering yes to all the questions
service vsftpd status
yum -y update httpd
fdisk
rpm -Va
25. ____ prints superblock and block group information.
rpm -V
rpm -Va
ErrorLog
dumpe2fs
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.
iptables -F
example
filesystem type is not ext2 or ext3
hkconfig --list httpd
27. To list under which run levels the web service will start
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
filesystem type is not ext2 or ext3
hkconfig --list httpd
ls -Z
28. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
-i (do not use -U or -F!)
ServerAdmin
LVM
fdisk -l
29. 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
yum clean all
e2fsadm
ls -Z
setsebool -P squid_connect_any 1
30. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
/boot
rpm -V pam
wget (http://devmon.dev.schwab.com/index.html)
lvdisplay -D /dev/rootvg/tmplv
31. ____ can expand and shrink ext2 and ext3 file systems
ServerName
elinks
resize2fs
NameVirtualHost
32. 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.
ServerTokens OS from http.conf
rpm -V
dd if=./diskboot.img of=/dev/sdc
5
33. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
dd if=./diskboot.img of=/dev/sdc
fdisk
grep "[.*]" server1.repo
CustomLog
34. _____ will change the size of /dev/rootvg/tmplv to 4 gig
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
AllowOverride
arted; mklabel k
lvextend -L4G /dev/rootvg/tmplv
35. ___ shows me what config files were installed when the httpd package was installed
bootable partitions
NameVirtualHost
rpm -qc httpd
5
36. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
wget (http://devmon.dev.schwab.com/index.html)
ServerTokens OS from http.conf
chcon -R -t httpd_sys_content_t /home/michael/public_html
NameVirtualHost
37. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
setsebool -P squid_connect_any 1
iptables -F
iptables
lvdisplay -D /dev/rootvg/tmplv
38. 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)
yum -y update httpd
service vsftpd status
e2fsadm
chmod 705
39. rpm ____ verifies the installed zip rpm against the rpm database
fdisk
yum install httpd
arted; mklabel k
rpm -V zip
40. Apache supports security by specifying active ports through the Listen and ____ directives.
DocumentRoot
showmount -e
NameVirtualHost
--import file
41. ____ is used to modify file system parameters
select (followed by the device name such as /dev/hdb)
tune2fs
ErrorLog
hkconfig --list httpd
42. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
yum clean all
parted; check x
-i
rpm -ivh --replacepkgs xxxx*
43. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
dd if=./diskboot.img of=/dev/sdc
ls -Z
iptables
44. ___________ can be on a RAID device
elinks
bootable partitions
pirut
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
45. Virtual Host Configuration: Names the URL for the virtual host.
ServerName
e2fsadm
chmod 705
ErrorLog
46. 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
arted; mklabel k
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
-i (do not use -U or -F!)
47. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
resize2fs
service vsftpd status
rpm -V zip
chmod 705
48. 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:
mke2fs
service vsftpd status
htpasswd -c /etc/httpd/webpass e
ServerAdmin
49. create the basic cache directories in /var/spool/squid with the following command:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
squid -z
chkconfig --level 35 httpd on
NameVirtualHost
50. after you edit /etc/exports - run service ___ stop...
showmount -a
nfs
yum install mod_ssl squid
rpm -V pam