会计考友 发表于 2012-8-4 12:19:50

红帽认证RHCE试题及答案1

1. If you want to allow X-Windows programs from hostB to run on the display on hostA what would you need to do?
A. run xhost +hostB on hostA.
B. run xhost +hostA on hostB.
C. run xhost + on hostA.
D. run xhost + on hostB.
E. just set the DISPLAY environment variable and it will work.
You answered this question incorrectly
Explanation: 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.

2. What command can you enter to find out which rpm contains the /etc/foo file?
A. rpm -qa |grep foo
B. rpm -ql /etc/foo
C. rpm -qlf /etc/foo
D. rpm -q -f /etc/foo
E. man foo
You answered this question incorrectly
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.

3. 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?
A. Xfind
B. SuperProbe
C. Xsetup
D. cat /proc/video
E. videocfg
You answered this question incorrectly
Explanation: The SuperProbe program is used to find information about your graphics card.

4. Which installation class will automatically delete all of your DOS partitions?
A. Custom
B. Workstation
C. Laptop
D. Server
E. All of the above
You answered this question incorrectly
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.)

5. How do you install an RPM?
A. rpm -evh packagename.rpm
B. rpm -ivh packagename.rpm
C. rpm -q packagename.rpm
D. rpm -qa *.rpm
E. rpm -ql *.rpm
You answered this question incorrectly
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.
页: [1]
查看完整版本: 红帽认证RHCE试题及答案1