a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 111|回复: 0

[红帽认证] 红帽认证RHCE试题及答案3

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
11. How do you enable quotas on a partition in /etc/fstab? 6 s/ J& w9 F' z
A. Add the enforcequotas option.
" u. X5 {# ~( o8 X% ?: UB. You don’t. Quotas are turned on automatically when you install the quota rpm. . W7 {) R  E1 B0 y3 X5 c
C. Add the quota option. $ u& l; _3 i/ U
D. Add the usrquota and grpquota options. ' a* V2 I( G' d/ V! t
E. You put a 1 in the last column.
, s1 s4 _- _* l0 T- mYou answered this question incorrectly
6 G) b' j* i6 @) h+ ?Explanation: To enable quotas on a partition you put the userquota and groupquota option in the options section for the partition in /etc/fstab.
5 Q! o4 l; n5 _1 O) O+ p4 ?1 T; @5 H, m' }0 x4 M- l
12.You want to compile a new kernel. You have just run . P# y8 m9 j) g0 a  ?7 X1 |- X
A. make bzImage
; x  W3 t" i0 j9 n9 d2 g- B+ bB. make dep " F- Y$ D) l1 p6 B& e' c
C. make clean " v: j, N4 C' T
D. make mrproper
" j+ T+ ]0 I) V8 D, k- Z1 XE. make xconfig
, n+ k" O( K7 y, A3 |6 bYou answered this question incorrectly
2 I1 B5 g/ Z) w; J3 g; l" K: u* `+ CExplanation: The first thing you should do in the /usr/src/linux-2.4 directory is ) \$ h: D, Y# Z. t
make mrproper - m6 n3 ~" u( j" e: I* \* E' e
Thencomma you should do the following: make config | make menuconfig | make xconfig
* D! j' p) v* v2 Q# r3 c0 _( Imake dep 4 ^) W/ `) R. @
make clean
) i2 |: A! B- d) Amake bzImage . m* Y3 t% g- L! s& N
make modules (if modular kernel)
" H, b& f6 K7 y/ rmake modules_install (if modular kernel) 0 {) N  @" m- z$ h3 f2 {, g
cp System.map /boot/System.map-2.4.17
8 a$ L4 t& _' }; ]5 c( ]0 Q# R+ O! Jcp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17 - j0 S+ V% x3 K. r* j; Y
cp .config /boot/config-2.4.17 1 o2 O0 m, D8 D& J+ f" U+ @
mkinitrd /boot/initrd- # Depending on kernel configuration
# B0 w5 {6 ]7 Z6 RUpdate LILO or GRUB
  i/ J# {- C- w9 @3 y) M2 ]4 YReboot into new kernel
/ L& P1 X) L  i
$ y: d+ ^; T4 I8 H+ p2 r' O* n( n! i: p6 |$ U
13. You are configuring a Linux DHCP server. You have it setup and working (as Linux clients are getting ip addresses from the DHCP server fine) but some Windows 95 clients are not getting ip addresses properly from your DHCP server. What do you need to do?
8 Z8 i, i: x; w7 |, L4 h0 zA. route add -host 255.255.255.255 dev eth0
! N# X- }- B; \B. route add -net 255.255.255.255 dev eth0 : j+ r  F1 n- e. M" \; v" B  M
C. service dhcp restart * i# y. ?3 C, E1 l! j9 V
D. touch /var/state/leases
4 W" S( P; n4 A. D  Y9 }; V. l, g; aE. Windows 95 is not compatible with a Linux DHCP server.
9 U5 e+ j% D! A+ z' n, \; bYou answered this question incorrectly
+ j) i6 d: M3 g  {. h' LExplanation: Windows 95 insists that the DHCPOFFER messages be sent to 255.255.255.255. Linux will send them to the broadcast address instead. Adding a host entry for the host 255.255.255.255 will trick Linux into working with the Windows 95 clients.
! @5 U3 {8 C( t# j  H7 _% P! S3 q& H) c3 Z/ Q5 E7 Q2 P* `3 _
14. You want to add a directory to all users paths. What file should you edit to do this?
  O4 A! {8 ~& \8 [! i& MA. /etc/sysconfig/profile B. /etc/sysconfig/profile
" b) p4 l) }7 E, |1 @; y( G5 ?" xC. /etc/bashrc % Q! g' {- P- I4 r9 B! }
D. /etc/profile 0 N4 \6 u& D7 {$ Y3 y' x8 _- d% x
E. /etc/env ; {& y8 Y( A' x* L
You answered this question incorrectly
) r; {3 [6 ^6 _) E3 x% X0 AExplanation: The /etc/profile script is used for system-wide enviornment variables and startup files. You could also create a new file in /etc/profile.d/ that ends in .sh and set the enviornment variable in there. Keep in mind that not all users will necessarily use bash.
( D% w: J# _% a' {( h" H0 J$ m2 P# ]8 r" C( B
15. Which files are used to configure TCP Wrappers?
2 B- q9 u5 x3 t+ q6 l! N& d5 UA. /etc/tcpwrapper.conf and /etc/hosts.conf ; w, T2 \: E0 a) {' [' h% E
B. /etc/hosts.allow and /etc/hosts.deny
* {9 }/ r" h( C' s- a3 tC. /etc/tcpwrapper.conf and /etc/xinetd.conf
8 J2 L% g) d, Z, v# |. bD. /etc/access.conf and /etc/xinetd.conf
! O4 u# h( f, j! B1 Z4 @9 K  Y; gE. /etc/tcpwrapper and /etc/access.conf $ ^7 M4 C$ O* ]
You answered this question incorrectly . n1 l$ A: z& H8 h8 ~- G
Explanation: TCP Wrappers are configured in the /etc/hosts.allow and /etc/hosts.deny files.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-6 05:32 , Processed in 0.174511 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表