1
1
/* chgrp -- change group ownership of files
2
Copyright (C) 1989-1991, 1995-2011 Free Software Foundation, Inc.
2
Copyright (C) 1989-2012 Free Software Foundation, Inc.
4
4
This program is free software: you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
30
30
#include "root-dev-ino.h"
31
31
#include "xstrtol.h"
33
/* The official name of this program (e.g., no `g' prefix). */
33
/* The official name of this program (e.g., no 'g' prefix). */
34
34
#define PROGRAM_NAME "chgrp"
115
114
Change the group of each FILE to GROUP.\n\
116
115
With --reference, change the group of each FILE to that of RFILE.\n\
118
119
-c, --changes like verbose but report only when a change is made\n\
120
-f, --silent, --quiet suppress most error messages\n\
121
-v, --verbose output a diagnostic for every file processed\n\
119
124
--dereference affect the referent of each symbolic link (this is\n\
120
125
the default), rather than the symbolic link itself\n\
126
-h, --no-dereference affect symbolic links instead of any referenced file\n\
123
-h, --no-dereference affect each symbolic link instead of any referenced\n\
124
file (useful only on systems that can change the\n\
129
(useful only on systems that can change the\n\
125
130
ownership of a symlink)\n\
128
--no-preserve-root do not treat `/' specially (the default)\n\
129
--preserve-root fail to operate recursively on `/'\n\
133
--no-preserve-root do not treat '/' specially (the default)\n\
134
--preserve-root fail to operate recursively on '/'\n\
132
-f, --silent, --quiet suppress most error messages\n\
133
137
--reference=RFILE use RFILE's group rather than specifying a\n\
135
141
-R, --recursive operate on files and directories recursively\n\
136
-v, --verbose output a diagnostic for every file processed\n\
140
145
The following options modify how a hierarchy is traversed when the -R\n\
141
146
option is also specified. If more than one is specified, only the final\n\
142
147
one takes effect.\n\