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