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. how to install both mod_ssl and squid packages
-i (do not use -U or -F!)
NameVirtualHost
lvextend -L4G /dev/rootvg/tmplv
yum install mod_ssl squid
2. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
chcon -R -t httpd_sys_content_t /home/michael/public_html
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
(rpm -q)p file (for rpmfile name)
3. ___________ can be on a RAID device
bootable partitions
chkconfig --level 35 httpd on
yum -y update httpd
chmod 701
4. You can use the ____ tool after installation to add any package groups that you missed.
fdisk
chcon -R -t httpd_sys_content_t /home/michael/public_html
pirut
CustomLog
5. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
yum install mod_ssl squid
dd if=./diskboot.img of=/dev/sdc
/etc/squid/
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.
-i (do not use -U or -F!)
example
tune2fs
resize2fs
7. after you edit /etc/exports - run service ___ stop...
nfs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
resize2fs
/boot
8. Create a disk label for the partition table called k
ls -Z
arted; mklabel k
chmod 701
bootable partitions
9. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
ServerAdmin
-i
ls -Z
squid -z
10. 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
ServerName
nfs
fdisk -l
11. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
fdisk -l
chmod 705
lvextend -L4G /dev/rootvg/tmplv
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
12. You ran "e2label /dev/sda" and got "bad magic number" Why?
filesystem type is not ext2 or ext3
yum update kernel
dd if=./diskboot.img of=/dev/sdc
parted; check x
13. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
arted; mklabel k
-K
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
5
14. ____ prints superblock and block group information.
dumpe2fs
chcon -R -t httpd_sys_content_t /home/michael/public_html
grep "[.*]" server1.repo
NameVirtualHost
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.
hkconfig --list httpd
fdisk
iptables -F
-i (do not use -U or -F!)
16. The rpm ____ option installs the package - if it isn't already installed.
select (followed by the device name such as /dev/hdb)
-i
iptables -F
LVM
17. 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)
e2fsadm
chcon -R -t httpd_sys_content_t /home/michael/public_html
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
filesystem type is not ext2 or ext3
18. 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)
rpm -V pam
yum install httpd
/boot
CustomLog
19. You just finished editing your /etc/yum.repos.d/*repo file and want yum to use the new info - so you run ____
service vsftpd status
yum clean all
rpm -qc httpd
showmount -e
20. use parted to display disk geometry for /dev/hda and end up in shell
rpm -V zip
showmount -e
parted /dev/hda print
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
21. 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 -ivh --replacepkgs xxxx*
fdisk -l
rpm -V pam
22. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
tune2fs
chkconfig --level 35 httpd on
fdisk -l
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
23. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
mke2fs
elinks
yum clean all
rpm -ivh --replacepkgs xxxx*
24. 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:
elinks
htpasswd -c /etc/httpd/webpass e
resize2fs /dev/myvg/homevol
yum install mod_ssl squid
25. Virtual Host Configuration: Specifies an IP address for multiple virtual hosts.
NameVirtualHost
bootable partitions
ErrorLog
mke2fs
26. ___ to update the httpd package - automatically answering yes to all the questions
CustomLog
chkconfig --level 35 httpd on
yum -y update httpd
-K
27. rpm option to show me the package files
-l
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
fdisk -l
resize2fs /dev/myvg/homevol
28. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
fdisk -l
dd if=./diskboot.img of=/dev/sdc
yum clean all
DocumentRoot
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
showmount -e
hkconfig --list httpd
telnetd : ALL EXCEPT 192.168.1.10
tune2fs
30. The simplest way to install Apache
rpm -V zip
iptables -F
yum install httpd
--import file
31. 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
5
fdisk -l
filesystem type is not ext2 or ext3
ServerTokens OS from http.conf
32. ____ is used to modify file system parameters
rpm -qc httpd
tune2fs
-l
ServerTokens OS from http.conf
33. 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
chmod 701
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
e2fsadm
arted; mklabel k
34. 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
parted; check x
iptables -F
ServerAdmin
iptables
35. ____ configuration is not available via text mode RHEL installation.
ls -Z
bootable partitions
DocumentRoot
LVM
36. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
filesystem type is not ext2 or ext3
telnetd : ALL EXCEPT 192.168.1.10
fdisk
37. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
hkconfig --list httpd
iptables
rpm -V pam
lvdisplay -D /dev/rootvg/tmplv
38. 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 ____
tune2fs
yum install httpd
elinks
resize2fs /dev/myvg/homevol
39. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
filesystem type is not ext2 or ext3
ok
showmount -e
mke2fs
40. 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
resize2fs /dev/myvg/homevol
ErrorLog
yum clean all
41. List sboth the client hostname or IP address and mounted directory in host:dir format. This info should not be considered reliable.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
yum -y update httpd
showmount -a
ok
42. To list under which run levels the web service will start
ok
-i (do not use -U or -F!)
hkconfig --list httpd
squid -z
43. rpm ____ verifies the installed zip rpm against the rpm database
LVM
nfs
-K
rpm -V zip
44. rpm ____ to install kernel updates
setsebool -P squid_connect_any 1
ServerAdmin
resize2fs
-i (do not use -U or -F!)
45. rpm ____ to import the rpm key for integrity checking
--import file
rpm -ivh --replacepkgs xxxx*
fdisk -l
(rpm -q)p file (for rpmfile name)
46. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
yum clean all
chkconfig --level 35 httpd on
/boot
setsebool -P htttpd.enable.homedirs 1
47. Virtual Host Configuration: Names the URL for the virtual host.
htpasswd -c /etc/httpd/webpass e
tune2fs
dumpe2fs
ServerName
48. Virtual Host Configuration: Creates an error log; the location is based on the DocumentRoot.
ErrorLog
service vsftpd status
--import file
nfs
49. The main Squid configuration file is ____/squid.conf
yum -y update httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
/etc/squid/
squid -z
50. 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
/etc/lvmtab
(rpm -q)p file (for rpmfile name)
setsebool -P squid_connect_any 1
--import file