a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 120|回复: 0

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
6. What program can be used to test the smb.conf file for errors?
9 C- _4 X& A6 `- jA. mount
- z" {( S7 |  R/ c( b) D- ?B. test
. }; r2 o" o( ^2 \8 vC. samba --checkparm
) T% j; ]6 |% w- @D. testparm
2 \% I. }  L5 _5 \3 n2 h3 kE. smbfs
! H5 V, c1 Q/ Z5 n# l+ Q+ m, U9 o* `You answered this question incorrectly
2 c( U; [: r* B7 T5 s" sExplanation: the testparm program parses the smb.conf file and reports any errors. If you make a typo this program is likely to find it.
* v7 k$ B3 F8 q4 j
" t, B, e7 L% _; ~- K$ |7. What command do you use to edit the default grace period for quotas? 6 O- E5 I6 j- w
A. quotaconfig -g ) Q5 F7 y6 o, `8 `
B. editquota -g
2 r2 b/ ]" X0 w1 f. w+ pC. quotaconfig -t   S8 s$ e; ~2 l/ |0 l1 U
D. edquota -t   b: P5 [0 ^+ I, d, w
E. quotaeditor --grace
. {+ C% I# C, d5 a) X7 t9 m" ZYou answered this question incorrectly ; g* R9 g" J6 r9 X& T4 Y
Explanation: You use the edquota command to edit quotas. For example you can say edquota -u username to edit a specific user’s quota. Or you can type edquota -g to set a quota for a group. You can say edquota -t to set up grace periods. 9 |; X, d5 K( A: x" i9 ]. v: |

6 K! Z8 z! V3 S1 f- i4 c8. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)?
0 P; h7 _6 ]: s; w5 y0 x; @A. mount /dev/floppy /mnt/fd0 9 l" J1 _; U* N7 ^+ M* v5 T
B. mount -t iso9660 /dev/fd0 /mnt/floppy
! A6 d' Q* u- [* Q8 m8 ~C. mount -t vfat /dev/fd0 /mnt/floppy
, p3 |4 J% o6 S- E: bD. mount -t msdos /dev/floppy /mnt/floppy ( g, x3 o8 S6 x3 a" O' _: Y
E. mdir
/ h4 G* c7 \" F( `You answered this question incorrectly   ~5 P) g2 A9 w& j& r: _5 F% R
Explanation: A will only work if there is an entry in /etc/fstab. B is wrong because iso9660 is for CDROM’s. C is correct. D is wrong becuase the device should be /dev/fd0 rather than /dev/floppy. , a2 m; Y: \- }1 b9 Z: A
+ Y; l: l, g+ n# t" d
9. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group?
% f/ k5 t+ J; ZA. chmod g+rwx projectfoo /home/projectfoo 1 ~% s7 ?4 t$ u& V5 ?
B. chown projectfoo /home/projectfoo - E" [; |" i6 b( A4 n
C. chgrp projectfoo /home/projectfoo 4 D, P0 l' J/ Z: X, c' N5 g% B4 ~$ r& n8 y
D. newgrp projectfoo /home/projectfoo
4 J9 E% B& l2 p, kE. chown projectfoo.users /home/projectfoo 4 _) d# J5 v9 v7 P( x
You answered this question incorrectly 9 E; h+ K3 w/ ]0 Z0 B
Explanation: The chgrp command sets the group ownership of a file or directory. / H& |* F2 [9 e
9 S, }7 g6 ]3 l9 h
10. You have installed a DHCP server on your Linux machine and edited the configuration file. What else must you do before it will give out ip addresses?
6 j; K- G: k* I- |! \8 F* {A. reboot 6 _* n, h% |1 j3 }
B. Put fixed-addresses in the configuration for each client.
" a8 k9 w' B! _3 @C. service dhcp begin " C- E7 F. `6 o3 M' @1 s  ^3 B% h
D. touch /var/lib/dhcp/dhcpd.leases
& @6 G' d, t8 p$ A/ [7 S2 DE. All of the above
. j9 |# w" E- X5 qYou answered this question incorrectly
) a, X3 [1 ?& ?# W( @Explanation: You must touch the /var/lib/dhcp/dhcpd.leases file in order to get DHCP to begin giving out ip addresses.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 15:33 , Processed in 0.147486 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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