📄 chown.1
字号:
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.28..TH CHOWN "1" "July 2002" "chown (fileutils) 4.1.10" "User Commands".SH NAMEchown \- change file owner and group.SH SYNOPSIS.B chown[\fIOPTION\fR]... \fIOWNER\fR[\fI:\fR[\fIGROUP\fR]] \fIFILE\fR....br.B chown[\fIOPTION\fR]... \fI:GROUP FILE\fR....br.B chown[\fIOPTION\fR]... \fI--reference=RFILE FILE\fR....SH DESCRIPTIONThis manual pagedocuments the GNU version of.BR chown ..B chownchanges the user and/or group ownership of each given file, accordingto its first non-option argument, which is interpreted as follows. Ifonly a user name (or numeric user ID) is given, that user is made theowner of each given file, and the files' group is not changed. If theuser name is followed by a colon or dot and a group name (or numeric group ID),with no spaces between them, the group ownership of the files ischanged as well. If a colon or dot but no group name follows the user name,that user is made the owner of the files and the group of the files ischanged to that user's login group. If the colon or dot and group are given,but the user name is omitted, only the group of the files is changed;in this case,.B chownperforms the same function as.BR chgrp ..SH OPTIONS.PPChange the owner and/or group of each FILE to OWNER and/or GROUP..TP\fB\-c\fR, \fB\-\-changes\fRlike verbose but report only when a change is made.TP\fB\-\-dereference\fRaffect the referent of each symbolic link, ratherthan the symbolic link itself.TP\fB\-h\fR, \fB\-\-no\-dereference\fRaffect symbolic links instead of any referenced file(available only on systems that can change theownership of a symlink).TP\fB\-\-from\fR=\fICURRENT_OWNER\fR:CURRENT_GROUPchange the owner and/or group of each file only ifits current owner and/or group match those specifiedhere. Either may be omitted, in which case a matchis not required for the omitted attribute..TP\fB\-f\fR, \fB\-\-silent\fR, \fB\-\-quiet\fRsuppress most error messages.TP\fB\-\-reference\fR=\fIRFILE\fRuse RFILE's owner and group rather thanthe specified OWNER:GROUP values.TP\fB\-R\fR, \fB\-\-recursive\fRoperate on files and directories recursively.TP\fB\-v\fR, \fB\-\-verbose\fRoutput a diagnostic for every file processed.TP\fB\-\-help\fRdisplay this help and exit.TP\fB\-\-version\fRoutput version information and exit.PPOwner is unchanged if missing. Group is unchanged if missing, but changedto login group if implied by a `:'. OWNER and GROUP may be numeric as wellas symbolic..SH AUTHORWritten by David MacKenzie..SH "REPORTING BUGS"Report bugs to <bug-fileutils@gnu.org>..SH COPYRIGHTCopyright \(co 2002 Free Software Foundation, Inc..brThis is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE..SH "SEE ALSO"The full documentation for.B chownis maintained as a Texinfo manual. If the.B infoand.B chownprograms are properly installed at your site, the command.IP.B info chown.PPshould give you access to the complete manual.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -