📄 chgrp.1
字号:
.\" SCCSID: @(#)chgrp.1 6.5 3/5/90.TH chgrp 1.SH Namechgrp \- change file group.SH Syntax.B chgrp[.B \-fR].I group file....SH Description.NX R "chgrp command".NX A "chgrp command" "install command".NX R "group ID" "changing"The.PN chgrpcommand changes the group ID of one or more files or directories.For.IR file ,you may specify either a full or partial path.For .IR group ,you may specify either a decimal GID or a group name found in the groupfile..PPThe user entering the .PN chgrpcommand must either be the superuser, or be the owner of the file andbelong to the specified group..SH Options.TP 5.B \-fInhibits display of errors that are returned if.PN chgrpfails to change the group identifier of a file..TP.B \-RCauses .PN chgrpto recursively descend any directories subordinate to .I file and to set the specified group for each file encountered. Whensymbolic links are encountered, .PN chgrpchanges the group identifier of the link file but does not traverse thepath associated with the link..SH ExamplesChange group to admin for filea and fileb:.EXchgrp admin filea fileb.EE.SH Files.TP 15.PN /etc/group.TP 15.PN /etc/passwd.TP 15.PN /etc/yp/src/group.TP 15.PN /etc/yp/src/passwd.SH See Alsochown(2), group(5), group(5yp), passwd(5), passwd(5yp)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -