Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103713613
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-16 16:20:25

作者: zhania  出自:
1. What file do I edit to prevent specific users from accessing an ftp server?
Choose the best answer:
A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/ftpacess
D. /etc/ftpusers
E. /etc/ftpd.conf

2. You have just added a new NFS share to the appropriate file. What must you do to activate the share?
Choose the best answer:
A. reboot
B. exportfs -a
C. ndc restart
D. server nfs start
E. mount -A

3. What does the -H option do for the dhcpcd program?
Choose the best answer:
A. Sets the hostname of the machine to the name provided by DHCP.
B. Kills any previous version of the dhcpcd program that may be running.
C. Passes the machine name to DHCP as part of the DHCP request.
D. Only tries to get a new ip address if the current one is older than a certain number of hours.
E. None of the above

4. What command will map all of the dependencies between modules into a file?
Choose the best answer:
A. modmap
B. depmod -a
C. depmod --rebuild
D. modmap --rebuild
E. modprobe --rebuild

5. What file contains the list of terminals that root is allowed to log into?
Choose the best answer:
A. /etc/rooterm.conf
B. /etc/terminals
C. /etc/secure
D. /etc/tty.conf
E. /etc/securetty

6. How do you install an RPM?
Choose the best answer:
A. rpm -evh packagename.rpm
B. rpm -ivh packagename.rpm
C. rpm -q packagename.rpm
D. rpm -qa *.rpm
E. rpm -ql *.rpm

7. What command will turn off the ftpd service in all runlevels?
Choose the best answer:
A. chkconfig ftpd off
B. rm /etc/rc.d/init.d/*ftpd*
C. chkconfig --levels 12345 ftpd off
D. service ftpd stop
E. service ftpd stop -persistant

8. What file would you edit to share out a directory via NFS?
Choose the best answer:
A. /etc/nfsd.conf
B. /etc/nsf
C. /etc/fstab
D. /etc/exports
E. /etc/export.conf

9. How can you see the kernel routing table?
Choose the best answer:
A. netstat -Route
B. netstat -rn
C. netstat -an
D. route show default gw
E. netstat

10. Sendmail is an example of a(n):?
Choose the best answer:
A. MTA
B. MUA
C. MDA
D. MLA
E. All of the above

11. What command can you enter to find out which rpm contains the /etc/foo file?
Choose the best answer:
A. rpm -qa |grep foo
B. rpm -ql /etc/foo
C. rpm -qlf /etc/foo
D. rpm -q -f /etc/foo
E. man foo

12. How can I see what directories are being shared via NFS on a remote host called fileserver?
Choose the best answer:
A. ping fileserver
B. mount -a -t NFS fileserver
C. showmount -e fileserver
D. nfstalk --query fileserver
E. None of the above

13. What command do you use to edit the default grace period for quotas?
Choose the best answer:
A. quotaconfig -g
B. editquota -g
C. quotaconfig -t
D. edquota -t
E. quotaeditor --grace

14. You want to compile a new kernel. You have just run "make dep". What should you do next?
Choose the best answer:
A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig

15. What command will create the quota.user and quota.group files for me?
Choose the best answer:
A. quotacheck -avug
B. quotacheck -cugf
C. quotacheck -rugf
D. repquota -u
E. none of the above

16. You want to add a directory to all users paths. What file should you edit to do this?
Choose the best answer:
A. /etc/sysconfig/profile
B. /etc/sysconfig/profile
C. /etc/bashrc
D. /etc/profile
E. /etc/env

17. How can you turn off interface eth1?
Choose the best answer:
A. service network stop
B. service netork stop eth1
C. ifstop eth1
D. ifdown eth1
E. ps -aux |grep eth1| kill `awk -f {$1}`

18. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode?
Choose all correct answers:
A. Wait for the machine to boot up then log in as root. Use the init 2 command.
B. At the LILO prompt use the linux single command.
C. At the LILO prompt use the linux 1 command.
D. At the LILO prompt use the linux command.
E. Linux only supports multi-user mode.

19. Your IP address is 10.0.0.2 and your subnet mask is 255.255.255.0. You have one ethernet card. You want to set your
default gateway to be 10.0.0.1. Which of the following is the correct syntax to accomplish this?
Choose the best answer:
A. route add default 10.0.0.1 eth0
B. route add default gw 10.0.0.1 dev eth0
C. route add default gw 10.0.0.2 eth0 255.255.255.0
D. route add default gw 10.0.0.2 /dev/eth0 255.255.255.0
E. route add default gw 10.0.0.2 255.255.255.0

20. What command do you use to edit quotas?
Choose the best answer:
A. quotaconfig
B. editquota
C. quotaconfig
D. edquota
E. quotaeditor

21.在目录/etc/rc.d/rc3.d下,有很多以K和S开头的链接文件,这里的以S开头的文件表示_____意思。
A. stop *B. start C. sys D. sysadmin

22.为了观察正在不断增长的日志文件,我们可以使用系统提供的_______工具:
A. uptime  B. vmstat *C. tail D. which

23. 使用at规划进程任务时,为了删除已经规划好的工作任务,我们可以使用______工具: A. atq *B. atrm  C. rm  D. del

24. Linux的i节点表从块_____开始。
A. 1 * B. 2 C. 3 D. 4

25. 编译内核有选项"loopback device support",该项选"y",则:
A. 支持加进直接运行二进制代码 B. 支持并口 *C. 支持把一个普通文件用作块设备
D. 支持网络

26.我们强制用户或组使用软限额时,可以通过_______设置用户超过此数额的宽限时间
A. quotaon B. quota -u C. quota -t *D. edquota -t

27. 我们可以通过设置条目________来控制可以访问samba共享服务的合法主机名。
A. allowed B. hosts valid *C. hosts allow D. public

28.NIS服务器通常包括:
* A. 主服务器 * B. 从服务器 C. 二级服务器 D. 域名服务器

29.一般说来,系统中的主分区编号表示为hdax形式时,编号可能为________
* A. 3 * B. 4 C. 5 D. 6

30. 使用fsck检查文件系统时,应该:
* A. 卸载(unmount)将要检查的文件系统 B. 一定要在单用户模式下进行
* C. 最好使用-t选项指定要检查的文件系统类型
D. 在linux下,运行fsck对文件系统进行了改变后不必重新启动系统,系统已经将正确的信息读入。

31. 常用的备份工具中不能直接实现备份级别,而是必须借助于其它工具才能实现的包括:
* A. tar B. dump * C. cpio * D. afio

32. 关于Linux内核版本说法正确的有:
* A. 遵循主版本号.次版本号.修正次数的约定 * B. 1.2.2.0表示稳定的发行版
* C. 2.2.6表示对内核2.2的第6次修正 * D. 1.3表示开发版本

33. You want to compile a new kernel. You have just run "make xconfig". What should you do next?
Choose the best answer:
A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig

34. How can you find out which ports are being used?
Choose the best answer:
A. ifconfig -a
B. netstat -a
C. netstat -rn
D. ports
E. cat /etc/services

35. You install Linux and reboot your machine and you see only L instead of the expected LILO. What is wrong?
Choose the best answer:
A. Lilo did not load at all.
B. The first stage boot loader loaded but not the second stage.
C. The descriptor table is corrupt.
D. The second stage boot loader loaded at an incorrect address
E. Nothing is wrong.

36. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in
/etc/fstab)?
Choose the best answer:
A. mount /dev/floppy /mnt/fd0
B. mount -t iso9660 /dev/fd0 /mnt/floppy
C. mount -t vfat /dev/fd0 /mnt/floppy
D. mount -t msdos /dev/floppy /mnt/floppy
E. mdir

37. Which option can not be specified to a Client using the DHCP protocol?
Choose the best answer:
A. default gateway
B. primary WINS server
C. subnet mask
D. web proxy server
E. IP address

38. Which options to chmod allow read access to all but only allow write and execute access to the owner?
Choose the best answer:
A. chmod 777 filename
B. chmod 700 filename
C. chmod 744 filename
D. chmod 447 filename
E. chmod 775 filename

39. 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?
Choose the best answer:
A. route add -host 255.255.255.255 dev eth0
B. route add -net 255.255.255.255 dev eth0
C. service dhcp restart
D. touch /var/state/leases
E. Windows 95 is not compatible with a Linux DHCP server.

40. What command allows you to switch from using Gnome to using KDE?
Choose the best answer:
A. Xconfigurator
B. Xsetup
C. Xwindowconfig
D. switchdesk
E. videocfg

41. What file do you edit to set the default runlevel?
Choose the best answer:
A. /etc/grub.conf
B. /etc/lilo.conf
C. either A or B
D. /etc/inittab
E. /etc/runlevel

42. How do I immeadiately shut down a Linux system?
Choose the best answer:
A. Turn off the monitor then turn off the CPU.
B. /sbin/stop
C. init 6
D. shutdown -h now
E. None of the above

43. How do I immeadiately shut down a Linux system?
Choose the best answer:
A. Turn off the monitor then turn off the CPU.
B. /sbin/stop
C. init 6
D. shutdown -h now
E. None of the above

44. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group?
Choose the best answer:
A. chmod g rwx projectfoo /home/projectfoo
B. chown projectfoo /home/projectfoo
C. chgrp projectfoo /home/projectfoo
D. newgrp projectfoo /home/projectfoo
E. chown projectfoo.users /home/projectfoo

45. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in
/etc/fstab)?
Choose the best answer:
A. mount /dev/floppy /mnt/fd0
B. mount -t iso9660 /dev/fd0 /mnt/floppy
C. mount -t vfat /dev/fd0 /mnt/floppy
D. mount -t msdos /dev/floppy /mnt/floppy
E. mdir

46. How can you create a file of all your ISA plug and play device settings?
Choose the best answer:
A. pnpdump >. isapnp.conf
B. pnpdump -isa >. isapnp.conf
C. isadump >. isapnp.conf
D. cat /proc/isa
E. isaadmin --dump >.isapnp.conf

47. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules?
Choose the best answer:
A. make modules_install
B. make install
C. make modules
D. make install_modules
E. make bzImage

48. Where are source RPMs installed?
Choose the best answer:
A. /usr/src/linux/rpms/
B. /var/src/linux/rpm/
C. /var/rpm/src/
D. /var/linux/rpm/src/
E. /usr/src/redhat/

49. 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?
Choose the best answer:
A. reboot
B. Put fixed-addresses in the configuration for each client.
C. service dhcp begin
D. touch /var/lib/dhcp/dhcpd.leases
E. All of the above

50. What directory contains the kernel?
Choose the best answer:
A. /
B. /kernel
C. /etc
D. /boot
E. /var/log

51. How can a user set up their own crontab entry?
Choose the best answer:
A. vi ~/.crontab
B. cp /etc/crontab .
C. crontab -v
D. crontab -e
E. cron -edit

52. The PCMCIA card configuration file is read by cardmgr (8) at startup time. It defines what resources are available for
use by Card Services describes how to load and initialize device drivers and describes specific PCMCIA cards. Where is this
file located?
Choose the best answer:
A. /etc/pcmcia/config.opts
B. /etc/sysconfig/pcmcia
C. /etc/config.pcmcia
D. /etc/pcmcia
E. /etc/pcmcia/config

53. What does COPS stand for?
Choose the best answer:
A. Company Oriented Password System
B. Computer Oriented Password Security
C. Computer Oracle and Password System
D. Computer Oracle and Points System
E. None of the above

54. 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?
Choose the best answer:
A. Xfind
B. SuperProbe
C. Xsetup
D. cat /proc/video
E. videocfg

55. You have just added a new NFS share to the appropriate file. What must you do to activate the share?
Choose the best answer:
A. reboot
B. exportfs -a
C. ndc restart
D. server nfs start
E. mount -A

56. Which installation class will automatically 0delete all of your DOS partitions?
Choose the best answer:
A. Custom
B. Workstation
C. Laptop
D. Server
E. All of the above

57. How do you enable quotas on a partition in /etc/fstab?
Choose the best answer:
A. Add the enforcequotas option.
B. You dont. Quotas are turned on automatically when you install the quota rpm.
C. Add the quota option.
D. Add the usrquota and grpquota options.
E. You put a 1 in the last column.

58. Which files are used to configure TCP Wrappers?
Choose the best answer:
A. /etc/tcpwrapper.conf and /etc/hosts.conf
B. /etc/hosts.allow and /etc/hosts.deny
C. /etc/tcpwrapper.conf and /etc/xinetd.conf
D. /etc/access.conf and /etc/xinetd.conf
E. /etc/tcpwrapper and /etc/access.conf

59. What file contains the configuration for BIND?
Choose the best answer:
A. /etc/bind.conf
B. /etc/named.conf
C. /etc/dns.conf
D. /var/named/bind.conf
E. /var/named.conf
阅读(264) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~