問題詳情

36.在 UNIX-based 作業系統,下列何者可將 a1.txt 之權限設定為 owner 可讀寫執行、group 可讀寫、other 可讀?
(A) chmod 777 a1.txt
(B) chmod 764 a1.txt
(C) chmod 654 a1.txt
(D) chmod 467 a1.txt

參考答案

答案:B
難度:簡單0.769841
統計:A(17),B(194),C(14),D(5),E(0)

用户評論

imitation】評論

chmod 764 a1.txt ,可將 a1.txt 之權限設定為 owner 可讀寫執行、group 可讀寫、other 可讀

Jhen-yuan Jha】評論

權限代表數字:讀r=4 , 寫w=2 , 執行x=1 ,

血慾皇族】評論

改變權限 ,chmod檔案權限的改變使用的是chmod這個指令,而權限的設定方法有兩種分別是使用數字或者是符號來進行權限的變更。數字類型改變檔案權限:Linux檔案的基本權限就有九個,分別是owner/group/others三種身份各有自己的read/write/execute權限,其中,我們可以使用數字來代表各個權限,各權限的分數對照表如下:  r:4 w:2 x:1每種身份(owner/group/others)各自的三個權限(r/w/x)分數是需要累加的owner為可讀可寫可執行  owner=rwx=4+2+1=7group為可讀可寫             group=rw-=4+2+0=6other為可讀                     others=r-- =4+0+0=4chmod [rwxrwxrwx] 檔案或目錄  = chmod 764 a1.txt參考網站:h...