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