?? chmod.2
字號:
.TH CHMOD 2 .SH NAMEchmod \- change mode of file.SH SYNOPSIS.B chmod(name, mode).br.B char *name;.SH DESCRIPTIONThe file whose nameis given as the null-terminated string pointed to by.I namehas its mode changed to.IR mode .Modes are constructed by ORing together somecombination of the following:.PP.RS 04000 set user ID on execution 02000 set group ID on execution 01000 save text image after execution 00400 read by owner 00200 write by owner 00100 execute (search on directory) by owner 00070 read, write, execute (search) by group 00007 read, write, execute (search) by others.RE.PPIf an executable file is set up for sharing(\fB\-n\fR or \fB\-i\fR option of.IR ld (1))then mode 1000 prevents the system fromabandoning the swap-space image of the program-text portionof the file when its last userterminates.Thus when the next user of the file executes it,the text need not be read from the filesystem but can simply be swapped in,saving time.Ability to set this bit is restricted to the super-usersince swap space is consumedby the images; it is only worth while for heavily used commands..PPOnly the owner of a file (or the super-user) may change the mode.Only the super-user can set the 1000 mode..SH "SEE ALSO"chmod(1).SH DIAGNOSTICZero is returned if the mode is changed;\-1 is returned if.I namecannot be found or if current useris neither the owner of the file nor the super-user..SH ASSEMBLER(chmod = 15.).br.B sys chmod; name; mode
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -