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. 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
NameVirtualHost
(rpm -q)p file (for rpmfile name)
2. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
parted /dev/hda print
squid -z
/etc/lvmtab
fdisk -l
3. after extending file system "homevol" - unmount it and then run _____ to make the filesystem size match the new larger volume.
resize2fs /dev/myvg/homevol
chmod 701
hkconfig --list httpd
NameVirtualHost
4. Apache supports security by specifying active ports through the Listen and ____ directives.
setsebool -P htttpd.enable.homedirs 1
pirut
rpm -V pam
NameVirtualHost
5. rpm ____ to import the rpm key for integrity checking
--import file
ErrorLog
resize2fs
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
6. To list under which run levels the web service will start
NameVirtualHost
hkconfig --list httpd
ErrorLog
DocumentRoot
7. 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
ServerTokens OS from http.conf
rpm -ivh --replacepkgs xxxx*
resize2fs /dev/myvg/homevol
8. Virtual Host Configuration: Sets a root directory for the virtual host.
grep "[.*]" server1.repo
hkconfig --list httpd
dumpe2fs
DocumentRoot
9. You just finished editing your /etc/yum.repos.d/*repo file and want yum to use the new info - so you run ____
fdisk -l
yum clean all
-l
mke2fs
10. logical partitions on a hard drive always start with number ____; on the first PATA/IDE hard drive on a PC - that is hda____.
5
ServerTokens OS from http.conf
resize2fs
showmount -e
11. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
resize2fs /dev/myvg/homevol
yum clean all
setsebool -P htttpd.enable.homedirs 1
(rpm -q)p file (for rpmfile name)
12. rpm ____ [name of package] to verify the package - once you have manually imported the key
/etc/squid/
rpm -V pam
-K
-i
13. 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)
hkconfig --list httpd
chmod 705
(rpm -q)p file (for rpmfile name)
14. ____ configuration is not available via text mode RHEL installation.
nfs
LVM
-K
rpm -V zip
15. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
AllowOverride
5
setsebool -P htttpd.enable.homedirs 1
chkconfig --level 35 httpd on
16. 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
setsebool -P squid_connect_any 1
lvextend -L4G /dev/rootvg/tmplv
5
/boot
17. ;'___ /var/www' will tell you the ACL settings of /var/www
CustomLog
/etc/lvmtab
-i (do not use -U or -F!)
ls -Z
18. 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
rpm -ivh --replacepkgs xxxx*
resize2fs
-l
AllowOverride
19. ___________ can be on a RAID device
filesystem type is not ext2 or ext3
bootable partitions
parted /dev/hda print
elinks
20. use parted to display disk geometry for /dev/hda and end up in shell
e2fsadm
parted /dev/hda print
chcon -R -t httpd_sys_content_t /home/michael/public_html
yum -y update httpd
21. You ran "e2label /dev/sda" and got "bad magic number" Why?
LVM
nfs
pirut
filesystem type is not ext2 or ext3
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
setsebool -P squid_connect_any 1
resize2fs
squid -z
rpm -Va
23. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
service vsftpd status
telnetd : ALL EXCEPT 192.168.1.10
htpasswd -c /etc/httpd/webpass e
setsebool -P htttpd.enable.homedirs 1
24. 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:
arted; mklabel k
setsebool -P htttpd.enable.homedirs 1
showmount -e
rpm -qc httpd
25. ____.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.
setsebool -P squid_connect_any 1
AllowOverride
dumpe2fs
example
26. 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.
rpm -V
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
setsebool -P htttpd.enable.homedirs 1
parted /dev/hda print
27. use grep to count how many repositories have been configured in the file server1.repo
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum clean all
fdisk
grep "[.*]" server1.repo
28. To check status of ftp daemon
ErrorLog
ls -Z
grep "[.*]" server1.repo
service vsftpd status
29. ___ will tell me if any files in the pam package have changed since it was first installed
rpm -ivh --replacepkgs xxxx*
rpm -V pam
rpm -V
elinks
30. rpm option to show me the package files
yum install httpd
pirut
-l
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
31. 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
chmod 701
rpm -ivh --replacepkgs xxxx*
-l
yum update kernel
32. rpm ____ verifies the installed zip rpm against the rpm database
telnetd : ALL EXCEPT 192.168.1.10
rpm -V zip
rpm -V
yum install mod_ssl squid
33. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael if you want /home/michael/public_html accessible
rpm -V
CustomLog
chmod 701
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
34. 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.
resize2fs /dev/myvg/homevol
hkconfig --list httpd
iptables -F
fdisk -l
35. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
fdisk -l
squid -z
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
--import file
36. 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/
ls -Z
-i
elinks
37. 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
rpm -V
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chcon -R -t httpd_sys_content_t /home/michael/public_html
ServerAdmin
38. ____ is used to modify file system parameters
setsebool -P squid_connect_any 1
chcon -R -t httpd_sys_content_t /home/michael/public_html
tune2fs
fdisk -l
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
-i
-K
--import file
telnetd : ALL EXCEPT 192.168.1.10
40. ___ shows me what config files were installed when the httpd package was installed
yum install httpd
rpm -qc httpd
iptables
CustomLog
41. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
-i (do not use -U or -F!)
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
-i
ok
42. rpm ____ to install kernel updates
-i (do not use -U or -F!)
rpm -V
grep "[.*]" server1.repo
nfs
43. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
resize2fs
wget (http://devmon.dev.schwab.com/index.html)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
yum -y update httpd
44. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
dumpe2fs
rpm -V zip
ServerAdmin
tune2fs
45. You can use the ____ tool after installation to add any package groups that you missed.
pirut
CustomLog
rpm -V
tune2fs
46. Run the ____ command to find the device associated with the USB key.
fdisk -l
parted; check x
setsebool -P htttpd.enable.homedirs 1
tune2fs
47. 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)
grep "[.*]" server1.repo
e2fsadm
chmod 701
CustomLog
48. after you edit /etc/exports - run service ___ stop...
rpm -V pam
parted /dev/hda print
nfs
/boot
49. ____ can expand and shrink ext2 and ext3 file systems
resize2fs
rpm -qc httpd
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
lvdisplay -D /dev/rootvg/tmplv
50. how to install both mod_ssl and squid packages
squid -z
yum install mod_ssl squid
nfs
arted; mklabel k
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests