a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 241|回复: 0

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

[复制链接]
发表于 2012-8-4 12:19:50 | 显示全部楼层 |阅读模式
1. If you want to allow X-Windows programs from hostB to run on the display on hostA what would you need to do? 5 T6 L; O0 N6 L' \" D0 \! W
A. run xhost +hostB on hostA. 4 A# T1 W5 e: t
B. run xhost +hostA on hostB.
. Q) Q+ _  ]' v5 i$ b/ Z: _( @C. run xhost + on hostA. 6 `( J  O0 r) a6 j( o
D. run xhost + on hostB.
& _, I# w% b6 [# d- [2 {E. just set the DISPLAY environment variable and it will work.
. P; u; X% c9 i8 OYou answered this question incorrectly
$ e% r# S  x  s9 U, OExplanation: You want programs from hostB to display on hostA. So you must tell hostA to allow Xclients from hostB. Hence A is correct. The xhost + command is too broad and allows anyone to connect to your X-server.
3 s0 z: y4 v. b) x# }2 ]
7 N* l% S# U) B! l' u) {6 J2. What command can you enter to find out which rpm contains the /etc/foo file? 1 v1 Y( h! A! V
A. rpm -qa |grep foo 3 a: b, q* D+ |9 V# d
B. rpm -ql /etc/foo 2 i0 L: ?# z, P* I. X1 A
C. rpm -qlf /etc/foo
& ^0 o) L) G. u( M1 T  bD. rpm -q -f /etc/foo ) P8 V; M. N. ^, p% x# B
E. man foo
8 h8 Z$ J4 ]3 u, D$ d7 NYou answered this question incorrectly : ^/ A* R8 K* l3 f
Explanation: You can find out which rpm a file belongs to by using the rpm -q -f command. You must have the redhatrpmdb rpm installed though. ( X2 S, e* p* l9 h' {

/ h- I; g- a" G6 |9 w3. You have a Linux machine that does not have X-Windows configured. What command can you use to find out what kind of graphics card it has?
& [: t4 v9 `' C; uA. Xfind ; M2 L' \7 }) T# M
B. SuperProbe % V) Y1 A, J& E$ a6 ~
C. Xsetup
9 L' A5 r, p* J' s* x- M4 wD. cat /proc/video ; Y! R" h" W& [* j) l
E. videocfg " G) `5 t0 b) o
You answered this question incorrectly
' u1 \% ?8 v: b* e: q# Y2 eExplanation: The SuperProbe program is used to find information about your graphics card.
7 c& v2 Q0 w4 v( i; d: ?+ v2 M  O' a5 K. t( ~8 a7 V7 U
4. Which installation class will automatically delete all of your DOS partitions? & D3 l; E! E4 v& d; k! L* d
A. Custom
# N; I6 R/ r: T7 V# A$ EB. Workstation : p' J! @; N3 j$ d1 x+ R3 W+ H
C. Laptop # G+ L5 s: C6 g# A1 G  Y. S' p
D. Server 9 u  p( Z! c: Q9 H7 D5 g
E. All of the above
) h# N% H' M. b* V# `8 ]You answered this question incorrectly + [% u0 E+ Q4 q) z9 \; s
Explanation: The Server installation class will automatically delete all DOS partitions. The workstaion class will use availiable free space. The laptop class is very similar to the workstation class (but for laptops.)
2 _2 A9 o. h, `. P! i/ l$ S& `6 a! w8 h
5. How do you install an RPM? $ [, E, ]) W$ p/ N0 ]" i0 K( z/ U& W+ Q
A. rpm -evh packagename.rpm
) d' L2 Y9 q! fB. rpm -ivh packagename.rpm , O+ Y) I3 ~. T% D8 d' k+ p- l6 W
C. rpm -q packagename.rpm
: w* c4 y1 _1 t; ]5 Q$ z6 Z4 Y2 J9 lD. rpm -qa *.rpm 9 x& R8 S! \: L3 H$ [; t
E. rpm -ql *.rpm 0 l+ ^& n3 o1 h2 `+ U
You answered this question incorrectly
* k2 W) Y6 H9 d3 C3 l7 O) Q8 w, }Explanation: A is wrong because the -e option is for uninstalling. B is right. C D and E are wrong because the -q option is for querrying.
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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