作者 主題: 請教幾題102  (閱讀 10222 次)

0 會員 與 1 訪客 正在閱讀本文。

aaronosos

  • 懷疑的國中生
  • **
  • 文章數: 43
    • 檢視個人資料
請教幾題102
« 於: 2005-05-12 21:00 »
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這樣對嗎?

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這樣對嗎?

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對嗎?

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對嗎?

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嗎?

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/下再做相關更改吧?是這麼解釋嗎?

yyycome

  • 懷疑的國中生
  • **
  • 文章數: 37
    • 檢視個人資料
請教幾題102
« 回覆 #1 於: 2005-08-24 09:40 »
1、不知
2、e(有ps1嗎?)
3、e(-O是指是否為該file有擁有者)
4、c(在logrotate.conf應該也可以設定size,只不過常在logrotate.d裡面設定)
5、b(http://www.gentoo.org/doc/zh_tw/cron-guide.xml)
6、bc(我算出來是168~175,所以168與175應該不能用吧!)
7、c
8、c
請指教~
df

hotdog914

  • 可愛的小學生
  • *
  • 文章數: 2
    • 檢視個人資料
請教幾題102
« 回覆 #2 於: 2006-02-03 11:30 »
能否請大大們解惑


1.Which shell do you use for a POP3 only account on your system?
________________________________________
Choose the best answer.Mark question for review      
________________________________________

/bin/bash  

/bin/rsh  

/bin/psh  

/bin/popsh  

/bin/false  

我寫是a
2.Which of the following protocols can be used to authenticate a ppp client to
a ppp server?
 
________________________________________
Choose every correct answer. Mark question for review      
________________________________________

chat  

CHAP  

PPP-AUTH  

PAP  

pppd  

是b.d嗎??

3.The group foo has a password. Who needs to know this password?
 
________________________________________
Choose every correct answer. Mark question for review      
________________________________________

Any user who is member of the group foo  

Any user who is member of the group foo but foo isn't his primary group  

Any user who is member of the group foo and wants to change his primary group to foo  

Any user who is not member of the group foo but wants permission to a file belonging to this group  

Any user who wants permission to a file belonging to this group  


4.What file can be used to declare an user account valid for only the time
between 1st of may and 5th of july?


  /etc/passwd

  /etc/shadow

  /etc/group

  /etc/login.defs

  /etc/validusers

我寫b...

有錯的地方請大家幫忙
otdog

creative1223

  • 懷疑的國中生
  • **
  • 文章數: 69
    • 檢視個人資料
請教幾題102
« 回覆 #3 於: 2006-06-02 03:49 »
1.Which shell do you use for a POP3 only account on your system?
這個是/bin/false
可以讓使用者使用某些服務…但是不能登入系統(shell)操作

harrier

  • 榮譽博士
  • 俺是博士!
  • *****
  • 文章數: 1856
  • 性別: 男
    • 檢視個人資料
    • 國屬武裝兵
請教幾題102
« 回覆 #4 於: 2006-06-02 10:05 »
引述: "yyycome"

2、e(有ps1嗎?)


PS1 - primary prompt characters, usually $ or #.
PS2 - secondary prompt characters, usually >.
(以上大多數 UN*X 應該要適用,所有 UNIX 都會適用)

這邊也有資料:(上面是 AIX 的管理手冊)

http://www.davidpashley.com/articles/bash-prompts.html
...90Net(90:1200/1203),GameNET(99:700/707),ALLNet(92:9200/3111),InfoNet(30:100/103)..MaximusCBCS(浮懷),AirNet,TenderNet,StormNet,FidoNet...
<<- www.nas.vg ->>

kolami

  • 可愛的小學生
  • *
  • 文章數: 6
    • 檢視個人資料
Re: 請教幾題102
« 回覆 #5 於: 2006-07-29 11:34 »
小弟本身也處於學習狀態,所以以下答案
不保證全部沒問題…

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/下再做相關更改吧?是這麼解釋嗎?

poppop

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
請教幾題102
« 回覆 #6 於: 2006-08-01 10:15 »
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


這一題是要問檔案存不存在,還是檔案擁有者呢?
如果是檔案存在的問題 a應該就可以了吧!
但是問檔案擁有者的話 那不就是e了,如果知道檔案擁有者的話,換句話說檔案就一定會存在了,是這個意思嗎?
存屬猜測!謝謝!

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17465
    • 檢視個人資料
    • http://www.study-area.org
請教幾題102
« 回覆 #7 於: 2006-08-01 16:58 »
man test 有這個說明:
引用
      -O FILE
              FILE exists and is owned by the effective user ID