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

請教幾題Linux LPI 102題目

1.How can you assign the result of the calculation 5 + 4 to the enviroment variable SUM in the bash shell?

(A) set SUM=5+4

(B)set $SUM=5+4

(C)let SUM=5+4

(D)let $SUM=5+4

(E)SUM=5+4

2.You want all messages from the kernel with a priority of "warn" or higher to be displayed on your 10th virtual terminal. What line in /etc/syslog.conf guarantees this?

(A)kernel.warn /dev/tty10

(B)kernel.=warn /dev/tty10

(C)kern.warn /dev/tty10

(D)kern.=warn /dev/tty10

(E)kern.warn /dev/tty9

這題我選(C),可是(E)又很像答案

3.What file is used to configure what time a specified command should be executed by at?

(A)/etc/at.conf

(B)/etc/attab

(C)/etc/at/tab

(D)~/.atrc

(E)at doesn't use files to set jobs

4.What program can backup files which are selected by a find command which pipes the names to the backup command?

(A)dd

(B)backup

(C)dump

(D)cpio

(E)tar

5.What is the dotted quad address of the default route?Type the answer.

是0.0.0.0嗎?

6.You want to change from inetd to xinetd. What is necessary to do, so that the settings from inetd can be used by xinetd?

(A)Nothing, xinetd and inetd use the same configuration file

(B)Rename the file /etc/inetd.conf to /etc/xinetd.conf

(C)The file syntax is totaly different, so you have to write a new configuration file

(D)Use the script xconv.pl, included with xinetd

(E)Use the script xindet-convert, included with xinetd

7.The user bob of your local system wants to read all his local mail at home. He now asks you to forward his mail to his regular email address. What do you do?

(A)change /etc/mail/forward

(B)change /etc/sendmail.fw

(C)change /etc/sendmail.forward

(D)change /home/bob/.forward or show bob how to change it

(E)change /home/bob/.sendmail.cf or show bob how to change it

8.How can you prevent users to login during a system check? What is the best Method?

(A)create a file /etc/nologin

(B)remove /etc/passwd

(C)enter the line "login=false" in /etc/login.defs

(D)enter the line "LOGIN no" in /etc/login.defs

(E)remove /etc/securetty

麻煩高手回答一下,謝謝。

1 個解答

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

    1.

    2.(C)kern.warn /dev/tty10

    (題目說要顯示在第10的終端機上,E是第9個)

    3.(E)at doesn't use files to set jobs

    4.(E)tar

    5.預設路由是0.0.0.0沒錯

    6.(C)The file syntax is totaly different, so you have to write a new configuration file

    7.(D)change /home/bob/.forward or show bob how to change it

    8.(A)create a file /etc/nologin

    2007-07-22 06:56:37 補充:

    1.(C)let SUM=5+4

    參考資料: linux 經驗, 按太快,沒檢查
還有問題?馬上發問,尋求解答。