a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 157|回复: 0

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
16. How can you see the kernel routing table?
6 V& g* B' M7 h: WA. netstat -Route * U+ Z5 x( o' x( R. R+ f* G' c9 M( n
B. netstat -rn ( y8 T" x# q8 P' J2 l
C. netstat -an
2 ?( j& Z! ~. fD. route show default gw
1 C6 p. S7 _9 Z# ]% J0 _# s- ]; yE. netstat
, x' ?; e! H5 mYou answered this question incorrectly * v# _- P, z* u2 O/ a/ C
Explanation: The netstat -rn command shows the kernel routing table.
( N$ r+ d) d3 ]& m- A: j# R' ~! z# V, Q2 ]
17. How can a user set up their own crontab entry? # H# ]- r* K9 K. k4 u5 j
A. vi ~/.crontab . b5 A; k/ y) V" R) L  V+ Z* ~
B. cp /etc/crontab .
! s9 m; s6 {' K; _4 Q  H1 g7 U* ^C. crontab -v % u; Y2 ~2 b/ n0 E7 V
D. crontab -e ' i3 T' P9 p; u* [7 U7 O; q
E. cron -edit
4 `# @4 }' q4 R2 a- VYou answered this question incorrectly
* S$ Z7 ~( o$ O* L0 kExplanation: The crontab -e command is used to edit your own crontab.
4 U$ |2 e- l/ `' \; H* S9 A1 A! Q; A7 X$ T# \! _  W
18. What file would you edit to share out a directory via NFS? : `( B  s3 L, N6 G! ^$ J( b$ f
A. /etc/nfsd.conf
1 d7 X3 W) o, g& P1 P0 UB. /etc/nsf
+ o. Y- ~- Q( J9 |C. /etc/fstab
8 ^1 n& F% t" H& BD. /etc/exports 7 D1 K" s- s( t" N8 b: q
E. /etc/export.conf , A: P: ]- W$ I8 I  e% [
You answered this question incorrectly 0 o! `6 N& t! O: M! \
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a. 2 C# u& j  X* Q7 G& I) t2 U
/ k. e- ~3 ]9 l; S8 B5 h, A& B+ F* V
19. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules?
- h% Z$ z& j- f5 @A. make modules_install : \. {5 }) B; a8 Z" v& o( V
B. make install + T+ B& }/ m- j$ R5 o6 s6 Z
C. make modules
7 Q  t$ V2 t" N$ j7 ]3 r: VD. make install_modules   X& [6 [+ S4 V  ?6 r5 z% _6 \; A
E. make bzImage ; j  q2 R- J$ T
You answered this question incorrectly
0 e9 g' f& r; {- ^Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is & Z5 ]* b% A+ t* C8 f8 U
make mrproper ; P( l: M5 _( {. S. w& E9 N5 q
Then, you should do the following: make config | make menuconfig | make xconfig $ P7 j  M; ^# N" S) o
make dep / w3 D$ P6 w% W- X: I
make clean
0 F; I- T; N$ x  Hmake bzImage
6 _" y! y% L3 smake modules (if modular kernel) + b/ p1 o9 f, Y8 {* e
make modules_install (if modular kernel)
  i7 q" m6 o% P+ ?! L% e# L9 r3 _8 ?cp System.map /boot/System.map-2.4.17
6 U7 F$ ]4 g6 w8 i4 wcp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17 ) M; J3 \% q, G- U
cp .config /boot/config-2.4.17 * H. ]6 W+ U2 y7 W
mkinitrd /boot/initrd- # Depending on kernel configuration , b( K. ^) j) Z+ E- p# Y8 K
Update LILO or GRUB
, h- k! [6 X) |) [Reboot into new kernel
2 l& a3 V* X$ t& u1 ?/ T: m1 F* I2 e. J% q7 C
20. What command do you use to edit quotas?
! P2 k8 U% z$ V1 B( IA. quotaconfig
- t: z1 a% a1 K; WB. editquota # R4 W& e, U! {  Y' d# i8 x
C. quotaconfig
: b$ `, O3 k& T% T" L5 RD. edquota 4 R0 N4 Y9 V6 D+ ?
E. quotaeditor
6 I7 L. r- M' L. Y7 S, q) GYou answered this question incorrectly 7 f6 ^# y4 Y7 y0 A. P% w
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.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 17:03 , Processed in 0.314251 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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