請教幾題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
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?
3.What file is used to configure what time a specified command should be executed by at?
(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?
5.What is the dotted quad address of the default route?Type the answer.
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?
(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
(C)enter the line "login=false" in /etc/login.defs
(D)enter the line "LOGIN no" in /etc/login.defs
- ALESSILv 61 0 年前最佳解答
3.(E)at doesn't use files to set jobs
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 經驗, 按太快，沒檢查