請教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: 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.
5.What additional field is used in the file /etc/crontab compared to a normal crontab?
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?
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
- ALESSILv 61 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
8.(b)use mount hostname:/absolute/path target(host主機要開啟nfs以及設定/etc/exports，然後下exportfs -r)參考資料： linux 經驗