小弟本身也處於學習狀態,所以以下答案
不保證全部沒問題…
You can give options to the kernel
a)using the append-command in /etc/lilo.conf
b)using the options-command in /etc/lilo.conf
c)appending the options to the kernel name while using the bootmanager
d)using the chopt command while running the system
e)writing the desired options to /proc/kernel
我選bc這樣對嗎?
→這題在
http://www.ph-home.de/linux-test/lpi-1/lpi.php?SelFile=linux05.test&ViewMethod=multi第41題有答案,應該是ac
What is described by the PS1 and PS2 enviroment variable?
a)Postscript Level 1 and Level 2 capabilities
b)Shortcuts for the commands "ps" and "ps uax"
c)The different levels for the Power Save Mode
d)The normal prompt and the following prompt of the shell
e)PS2 is a link to the mouse-port of a ps/2 mouse, PS1 doesn't exist
我選d這樣對嗎?
→沒錯
Writing a shellscript you want to check if the file foobar exists and is
owned by the user who runs the script. Which of
the following test commands will check this?
a)test -e foobar
b)test -r foobar
c)test -b foobar
d)test -o foobar
e)test -O foobar
我選e這樣對嗎?
→應該是a吧,這個實做或是看man page就知道了
Your logfiles are growing to a very huge size. What can you do, to limit the size of all logfiles to a reasonable value without losing information?
a)Enter the desired value in /etc/logfilesize.conf
b)Enter the desired value in /etc/syslog.conf
c)Run logrotate in regular intervalls (using cron)
d)Use the parameter --maxsize=xxx for the syslog daemon
e)Use the command head logfilename
要規定size這不應在/etc/logrotate.d/filename下規定size=XX嗎?不過這題我會選c?對嗎?
→這個題目我這邊三本書都沒有相關的答案,可能要請高手回答了
What is the difference between cron and anacron?
a)anacron is an old (anachronistic) version of cron
b)cronjobs get lost if the computer isn't running at the given time, anacron jobs don't get lost.
c)cron can only be used by root, anacron can be used by every user
d)anacron can only be used by root, cron can be used by every user
e)there is no difference
選d對嗎?
→看了一下man ,感覺是d
翻了一下書,裡面是寫說anacron的功能是檢查過去幾天時間
裡面有多少cron因為關機或其它原因造成lost的工作沒做
重新執行那些lost的工作,所以b也可以吧!
You get the IP-address 191.123.234.168/29 from your ISP. What are
valid host addresse in your network?
a)191.123.234.168
b)191.123.234.169
c)191.123.234.172
d)191.123.234.175
e)191.123.234.177
191.123.234.168經過與255.255.255.248AND運算後還是191.123.234.168
255.255.255.248在NOT後與191.123.234.168做OR後得191.123.234.176
所以有效主機是位於191.123.234.169~175
選bcd對嗎?
→我認為是bc,因為168和175分別為network和broadcast
What file is used to declare options used by pppd instead of giving them at the commandline?
a)/etc/ppp_options
b)/etc/pppd.conf
c)/etc/ppp/options
d)/etc/ppp/pppd.conf
e)/etc/ppp/pppd.options
c嗎?
→是的(實機操作)
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
c嗎?
→這題應該是b,我在debian系統上只找到這個檔案
You decide to use xinetd intead of inetd.What must be done in order to properly configure xinetd?
A. You must create a new configuration file for xinetd.
B. You must add xinetd to/etc/services.
C. You must add xinetd supp or[ to your tcpwrappers configuration files.
D. Nothing. xine td uses the same configuration files as inetd.
a吧~但我看testking的答案是d一個是/usr/sbin/tcpd一個是/usr/sbin/in.XXX
所以若要更改應該要複製新的檔案到xinetd.d/下再做相關更改吧?是這麼解釋嗎?