chgrp
chgrp [OPCIÓN]... GRUPO ARCHIVO...
chgrp [OPCIÓN]... --reference=RARCHIVO ARCHIVO...
Cambiar el grupo de cada ARCHIVO a GRUPO.
Options
--help-
Mostrar información de ayuda.
--changes,-c-
como verbose pero reportar solo cuando se hace un cambio
--silent,-f--quiet-
suprimir la mayoría de mensajes de error
--verbose,-v-
mostrar un diagnóstico para cada archivo procesado
--preserve-root-
fallar al operar recursivamente en ‘/’
--no-preserve-root-
no tratar ‘/’ especialmente (por defecto)
--reference=<RFILE>-
usar el grupo de RARCHIVO en lugar de especificar valores GRUPO
--from=<GROUP>-
cambiar el grupo solo si su grupo actual coincide con GRUPO
--recursive,-R-
operar en archivos y directorios recursivamente
-H-
if a command line argument is a symbolic link to a directory, traverse it
-L-
traverse every symbolic link to a directory encountered
-P-
do not traverse any symbolic links (default)
--dereference-
affect the referent of each symbolic link (this is the default), rather than the symbolic link itself
--no-dereference,-h-
affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)
Examples
Cambia el grupo propietario de un archivo/directorio:
chgrp {{grupo}} {{ruta/al/archivo_o_directorio}}
Cambia recursivamente el grupo propietario de un directorio y su contenido:
chgrp {{[-R|--recursive]}} {{grupo}} {{ruta/al/directorio}}
Cambia el grupo propietario de un enlace simbólico:
chgrp {{[-h|--no-dereference]}} {{grupo}} {{ruta/al/symlink}}
Cambia el grupo propietario de un archivo/directorio para que coincida con un archivo de referencia:
chgrp --reference {{ruta/al/archivo_de_referencia}} {{ruta/al/archivo_o_directorio}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.