買吧! 發問時間: 電腦與網際網路軟體 · 1 0 年前

請教Linux LPI 102題目

1.You want to fetch the current time via NTP from ntpserver.example.com. But

if you call "ntpdate ntpserver.example.com" you get the message "ntpdate[3209]: the NTP socket is in use, exiting" - what is most likely the reason?

(a)a former call of ntpdate has not yet finished

(b)the server ntpserver.example.com is overloaded and can't answer your request

(c)a ntpd is running on the local computer

2.You have to add some additional kernel parameters for a scsi hostadapter which is supported by a loadable module. Where can you enter this parameters so that they are known by modprobe? Choose all that apply.

(a)at the boot prompt

(b)in the file /etc/lilo.conf

(c)in the file /lib/modules/$(uname -r)/parameters

(d)in the file /etc/modules.conf

(e)in the file /etc/grub.conf

3.You have written a shellscript in /usr/local/bin/myscript. The script is executable by all users. But every time when you start it, the following error occurs: bash: myscript: No such file or directory. What is likely to be the reason?

(a)The /usr/local/bin directory is not in the PATH variable

(b)You don't have read permission to myscript

(c)Shellscripts are not binaries, so don't place them in a bin directory

(d)You made a mistake (typo) in the #!/bin/bash line

(e)You have to compile the script

4.Which criteria can be used in the logrotate configuration file to determine when a logfile should be rotated? Choose every correct answer.

(a)hourly rotating

(b)daily rotating

(c)weekly rotating

(d)monthly rotating

(e)filesize

5.What additional field is used in the file /etc/crontab compared to a normal crontab?

(a)UID

(b)Nice value

(c)Username

(d)Year

(e)Working directory

6.What command can set the cmos clock of your computer? (Just the command, no

path and options)

Type the answer.是hwclock嗎?

7.What command is run by pppd after a connection was established?

(a)ppp-up

(b)ip-up

(c)ppp-connect

(d)ppp-online

(e)pppup

這題我是選(b)

8.How can you mount a NFS share?

(a)use nfsmount hostname target

(b)use mount hostname:/absolute/path target

(c)use nfsmount hostname sharename target

(d)use mount hostname sharename target

(e)NFS shares can not be mounted

這題我是選(b)

請高手幫忙解題一下,謝謝。

1 個解答

評分
  • ALESSI
    Lv 6
    1 0 年前
    最佳解答

    1.(c)a ntpd is running on the local computer

    2.(d)in the file /etc/modules.conf

    3.(a)The /usr/local/bin directory is not in the PATH variable

    4.(b)daily rotating (c)weekly rotating (d)monthly rotating (e)filesize

    5.(c)Username

    6.hwclock 沒錯

    7.(b)ip-up

    8.(b)use mount hostname:/absolute/path target(host主機要開啟nfs以及設定/etc/exports,然後下exportfs -r)

    參考資料: linux 經驗
還有問題?馬上發問,尋求解答。