install
install [OPCIÓN]... [ARCHIVO]...
Copiar FUENTE a DEST o múltiples FUENTE(s) al DIRECTORIO existente, mientras se establecen los modos de permisos y propietario/grupo
Options
--backup=<CONTROL>-
make a backup of each existing destination file
-b-
like –backup but does not accept an argument
-c-
ignorado
--compare,-C-
comparar cada par de archivos fuente y destino, y en algunos casos, no modificar el destino en absoluto
--directory,-d-
tratar todos los argumentos como nombres de directorio. crear todos los componentes de los directorios especificados
-D-
crear todos los componentes principales de DEST excepto el último, luego copiar FUENTE a DEST
--group=<GROUP>,-g <GROUP>-
establecer propiedad del grupo, en lugar del grupo actual del proceso
--mode=<MODE>,-m <MODE>-
establecer modo de permisos (como en chmod), en lugar de rwxr-xr-x
--owner=<OWNER>,-o <OWNER>-
establecer propiedad (solo super-usuario)
--preserve-timestamps,-p-
aplicar tiempos de acceso/modificación de archivos FUENTE a los archivos destino correspondientes
--strip,-s-
quitar tablas de símbolos (sin acción en Windows)
--strip-program=<PROGRAM>-
programa usado para quitar símbolos de binarios (sin acción en Windows)
--suffix=<SUFFIX>,-S <SUFFIX>-
override the usual backup suffix
--target-directory=<DIRECTORY>,-t <DIRECTORY>-
mover todos los argumentos FUENTE al DIRECTORIO
--no-target-directory,-T-
tratar DEST como un archivo normal
--verbose,-v-
explicar qué se está haciendo
--preserve-context,-P-
preservar contexto de seguridad
-Z-
establecer contexto de seguridad SELinux de archivo destino y cada directorio creado a tipo predeterminado
--context=<CONTEXT>-
establecer contexto de seguridad de archivos y directorios
--unprivileged,-U-
do not require elevated privileges to change the owner, the group, or the file flags of the destination
Examples
Copy files to the destination:
install {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
Copy files to the destination, setting their ownership:
install {{[-o|--owner]}} {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
Copy files to the destination, setting their group ownership:
install {{[-g|--group]}} {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
Copy files to the destination, setting their mode:
install {{[-m|--mode]}} {{+x}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
Copy files and apply access/modification times of source to the destination:
install {{[-p|--preserve-timestamps]}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
Copy files and create the directories at the destination if they don’t exist:
install -D {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
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.