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