作者 主題: 詢問一些101的考題....  (閱讀 8047 次)

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

sean6578

  • 憂鬱的高中生
  • ***
  • 文章數: 199
  • 性別: 男
    • 檢視個人資料
詢問一些101的考題....
« 於: 2007-05-28 15:54 »
1.What is the default process priority when a user executes an
  application?

A.-10
B.10
C.0
D.20

ans:C

執行一個程式的pri值有固定的嗎??不解

2.When setting up the root(superuser) account,what umask
  setting should be used to deny read,write and execute
  permissions for all other users?

ans:77

root預設的umask是022,題目說不要給其他人有任何權限我算出來是026
不知道對不對

3.You have just added a CD-ROM drive(/dev/hdd) to your system
  and have added it to your fstab.Typically you can uses which
  of the following commands to mount media in that drive to
  /mnt/cdrom?

A.mount /dev/cdrom /mnt/cdrom
B.mount /dev/cdrom
C.mount -t cdrom /dev/cdrom /mnt/cdrom
D.mount /mnt/cdrom
E.automount /mnt/hdd /mnt/cdrom

ans:D

我試過在fstab這個檔案把光碟機加上去,不過我執行B和D的答案發現都可以掛載成功....不解

4.On boot you see an error message indicating that line 18
 of /etc/fstab is bad. Looking at it shows:
  /dev/fd0/ /mnt/floppy auto auto,user 0 0
  why is there an error?

A.auto is not allowed in the third field for removable media
B.auto in the fourth field cannot be used for removable media
C.The fifth field must be 1 for removeable media
D.The sixth field must be 1 for removeable media

ans:B

我把/dev/fd0/ /mnt/floppy auto auto,user 0 0加入到fstab後一樣掛的起來沒有錯誤,真是奇怪??
~以最少的人力管理最多的資源~~

harrier

  • 榮譽博士
  • 俺是博士!
  • *****
  • 文章數: 1856
  • 性別: 男
    • 檢視個人資料
    • 國屬武裝兵
Re: 詢問一些101的考題....
« 回覆 #1 於: 2007-05-28 16:21 »
引述: "sean6578"
1.What is the default process priority when a user executes an
  application?
A.-10
B.10
C.0
D.20
ans:C
執行一個程式的pri值有固定的嗎??不解
2.When setting up the root(superuser) account,what umask
  setting should be used to deny read,write and execute
  permissions for all other users?
ans:77
root預設的umask是022,題目說不要給其他人有任何權限我算出來是026
不知道對不對
3.You have just added a CD-ROM drive(/dev/hdd) to your system
  and have added it to your fstab.Typically you can uses which
  of the following commands to mount media in that drive to
  /mnt/cdrom?
A.mount /dev/cdrom /mnt/cdrom
B.mount /dev/cdrom
C.mount -t cdrom /dev/cdrom /mnt/cdrom
D.mount /mnt/cdrom
E.automount /mnt/hdd /mnt/cdrom
ans:D

我試過在fstab這個檔案把光碟機加上去,不過我執行B和D的答案發現都可以掛載成功....不解
4.On boot you see an error message indicating that line 18
 of /etc/fstab is bad. Looking at it shows:
  /dev/fd0/ /mnt/floppy auto auto,user 0 0
  why is there an error?
A.auto is not allowed in the third field for removable media
B.auto in the fourth field cannot be used for removable media
C.The fifth field must be 1 for removeable media
D.The sixth field must be 1 for removeable media
ans:B
我把/dev/fd0/ /mnt/floppy auto auto,user 0 0加入到fstab後一樣掛的起來沒有錯誤,真是奇怪??


LPI 天上飛的地上爬的都會考...   @@"
1.問:當用戶執行程式時,預設的優先權是..0,所以沒錯;
2.問:當希望把root的umask設成所有人都不能讀/寫/執行時,其值應該是 077,就是全部遮掉,也沒錯;
3.它說你安裝了光碟機/dev/hdd,而且要掛載到/mnt/cdrom,已經設好/etc/fstab內容,基本上,所謂/dev/cdrom都是超連結,早期的Linux也不會幫你建,題目中也沒說,所以D沒有錯;
4.問的比較tricky,一般來說開機時我們不會把光碟軟碟等媒體放在光碟機軟碟機裡,因此開機時若auto自動掛上會出現錯誤訊息..這是比較詭弔的問題...
...90Net(90:1200/1203),GameNET(99:700/707),ALLNet(92:9200/3111),InfoNet(30:100/103)..MaximusCBCS(浮懷),AirNet,TenderNet,StormNet,FidoNet...
<<- www.nas.vg ->>

sean6578

  • 憂鬱的高中生
  • ***
  • 文章數: 199
  • 性別: 男
    • 檢視個人資料
詢問一些101的考題....
« 回覆 #2 於: 2007-05-28 17:38 »
多謝harrier大的精闢回答

第一題:沒想到程式執行還有所謂的預設值,我用PID去看至少都15以上在跳動,還  
             以為應該沒有預設值說

第二題:我以為題目只是要讓others不能有任何權限,原來是只要讓owner
          有完全控管的權限啊!!

第三題:這個我就不清楚了,因為接觸Linux並沒有很長的時間所以對以前版本的一  
              些地方並不熟...暈

第四題:這題就如大大所說的真的很狡猾,當然也沒有人會在開機的之前放光碟或
              磁碟片開機吧....呵呵
~以最少的人力管理最多的資源~~