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 list under which run levels the web service will start
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
showmount -e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
hkconfig --list httpd
2. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ServerName
hkconfig --list httpd
rpm -ivh --replacepkgs xxxx*
3. rpm option to show me the package files
-l
NameVirtualHost
filesystem type is not ext2 or ext3
resize2fs
4. Perform a simple check of the file system. minor-num is x.
AllowOverride
parted; check x
setsebool -P htttpd.enable.homedirs 1
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
5. ___ will tell me if any files in the pam package have changed since it was first installed
dd if=./diskboot.img of=/dev/sdc
ServerAdmin
rpm -V pam
fdisk -l
6. rpm ____ verifies the installed zip rpm against the rpm database
ok
rpm -V zip
CustomLog
ServerName
7. 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
setsebool -P squid_connect_any 1
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -F
8. ____ can expand and shrink ext2 and ext3 file systems
yum -y update httpd
resize2fs
/boot
CustomLog
9. 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
ok
-K
chcon -R -t httpd_sys_content_t /home/michael/public_html
10. ____ configuration is not available via text mode RHEL installation.
service vsftpd status
LVM
fdisk -l
5
11. ____ prints superblock and block group information.
dumpe2fs
telnetd : ALL EXCEPT 192.168.1.10
filesystem type is not ext2 or ext3
/etc/lvmtab
12. ____ is used for creating ext2 and ext3 file systems
mke2fs
setsebool -P htttpd.enable.homedirs 1
iptables -F
nfs
13. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
setsebool -P htttpd.enable.homedirs 1
service vsftpd status
fdisk -l
(rpm -q)p file (for rpmfile name)
14. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
rpm -Va
resize2fs /dev/myvg/homevol
rpm -V
select (followed by the device name such as /dev/hdb)
15. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
CustomLog
filesystem type is not ext2 or ext3
AllowOverride
ServerAdmin
16. You can use the ____ tool after installation to add any package groups that you missed.
elinks
ok
setsebool -P htttpd.enable.homedirs 1
pirut
17. To select a different device without having to restart parted - use the ____ command . Then - you can view its partition table or configure it.
--import file
select (followed by the device name such as /dev/hdb)
rpm -V
yum install httpd
18. The simplest way to install Apache
/boot
yum install httpd
e2fsadm
filesystem type is not ext2 or ext3
19. Virtual Host Configuration: Names the URL for the virtual host.
tune2fs
filesystem type is not ext2 or ext3
setsebool -P htttpd.enable.homedirs 1
ServerName
20. rpm ____ verifies all installed rpms against the rpm database
parted; check x
rpm -Va
htpasswd -c /etc/httpd/webpass e
tune2fs
21. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
service vsftpd status
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
grep "[.*]" server1.repo
22. 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:
ServerAdmin
example
htpasswd -c /etc/httpd/webpass e
NameVirtualHost
23. To check status of ftp daemon
rpm -ivh --replacepkgs xxxx*
/boot
service vsftpd status
squid -z
24. 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 ____
yum clean all
pirut
elinks
grep "[.*]" server1.repo
25. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
chmod 705
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
(rpm -q)p file (for rpmfile name)
hkconfig --list httpd
26. after you edit /etc/exports - run service ___ stop...
select (followed by the device name such as /dev/hdb)
nfs
grep "[.*]" server1.repo
NameVirtualHost
27. ___ to update the httpd package - automatically answering yes to all the questions
parted; check x
setsebool -P squid_connect_any 1
AllowOverride
yum -y update httpd
28. use parted to display disk geometry for /dev/hda and end up in shell
chcon -R -t httpd_sys_content_t /home/michael/public_html
rpm -V pam
parted /dev/hda print
DocumentRoot
29. ___ shows me what config files were installed when the httpd package was installed
showmount -e
htpasswd -c /etc/httpd/webpass e
rpm -qc httpd
iptables
30. If you want to add an iptables command to forward TCP port 80 traffic to TCP port 3128 - you would use the following:
/etc/squid/
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
example
(rpm -q)p file (for rpmfile name)
31. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
--import file
fdisk -l
rpm -V pam
5
32. 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)
yum -y update httpd
htpasswd -c /etc/httpd/webpass e
fdisk -l
33. ____ is used to modify file system parameters
elinks
fdisk -l
tune2fs
chkconfig --level 35 httpd on
34. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
NameVirtualHost
elinks
fdisk -l
example
35. 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
ok
chmod 701
fdisk
36. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
ok
squid -z
rpm -V pam
htpasswd -c /etc/httpd/webpass e
37. 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
telnetd : ALL EXCEPT 192.168.1.10
LVM
iptables
showmount -a
38. 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
yum clean all
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
39. Virtual Host Configuration: Sets a root directory for the virtual host.
setsebool -P htttpd.enable.homedirs 1
DocumentRoot
hkconfig --list httpd
ErrorLog
40. 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
parted /dev/hda print
DocumentRoot
ServerTokens OS from http.conf
41. 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
squid -z
showmount -a
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P squid_connect_any 1
42. 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 -V pam
CustomLog
pirut
43. 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)
resize2fs /dev/myvg/homevol
e2fsadm
chmod 705
yum update kernel
44. ______ will show me volume info including vg - size - etc of /dev/rootvg/tmplv
5
lvdisplay -D /dev/rootvg/tmplv
iptables -F
yum -y update httpd
45. 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:
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
grep "[.*]" server1.repo
5
bootable partitions
46. The rpm ____ option installs the package - if it isn't already installed.
fdisk -l
-l
-i
htpasswd -c /etc/httpd/webpass e
47. ___________ can be on a RAID device
example
NameVirtualHost
bootable partitions
chcon -R -t httpd_sys_content_t /home/michael/public_html
48. The main Squid configuration file is ____/squid.conf
dd if=./diskboot.img of=/dev/sdc
select (followed by the device name such as /dev/hdb)
dumpe2fs
/etc/squid/
49. create the basic cache directories in /var/spool/squid with the following command:
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
--import file
squid -z
ServerTokens OS from http.conf
50. rpm ____ to install kernel updates
-i (do not use -U or -F!)
-K
fdisk
fdisk -l