Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

install

Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v0.13.0
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

ignored

--compare, -C

compare each pair of source and destination files, and in some cases, do not modify the destination at all

--directory, -d

treat all arguments as directory names. create all components of the specified directories

-D

create all leading components of DEST except the last, then copy SOURCE to DEST

--group=<GROUP>, -g <GROUP>

set group ownership, instead of process’s current group

--mode=<MODE>, -m <MODE>

set permission mode (as in chmod), instead of rwxr-xr-x

--owner=<OWNER>, -o <OWNER>

set ownership (super-user only)

--preserve-timestamps, -p

apply access/modification times of SOURCE files to corresponding destination files

--strip, -s

strip symbol tables

--strip-program=<PROGRAM>

program used to strip binaries

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--target-directory=<DIRECTORY>, -t <DIRECTORY>

copy all SOURCE arguments into DIRECTORY

--no-target-directory, -T

treat DEST as a normal file

--verbose, -v

explain what is being done

--preserve-context, -P

preserve security context

-Z

set SELinux security context of destination file and each created directory to default type

--context=<CONTEXT>

set security context of files and directories

--unprivileged, -U

do not require elevated privileges to change the owner, the group, or the file flags of the destination

Examples

Copia archivos al destino:

install {{ruta/al/archivo_fuente1 ruta/al/archivo_fuente2 ...}} {{ruta/al/destino}}

Copia archivos al destino, estableciendo su propiedad:

install {{[-o|--owner]}} {{usuario}} {{ruta/al/archivo_de_origen1 ruta/al/archivo_de_origen2 ...}} {{ruta/al/destino}}

Copia archivos al destino, estableciendo su propiedad de grupo:

install {{[-g|--group]}} {{usuario}} {{ruta/al/archivo_de_origen1 ruta/al/archivo_de_origen2 ...}} {{ruta/al/destino}}

Copia archivos al destino, estableciendo su modo:

install {{[-m|--mode]}} {{+x}} {{ruta/al/archivo_de_origen1 ruta/al/archivo_de_origen2 ...}} {{ruta/al/destino}}

Copia archivos y aplica las fechas y horas de acceso y modificación de los archivos de origen a los de destino:

install {{[-p|--preserve-timestamps]}} {{ruta/al/archivo_de_origen1 ruta/al/archivo_de_origen2 ...}} {{ruta/al/destino}}

Copia archivos y crea los directorios en el destino si no existen:

install -D {{ruta/al/archivo_de_origen1 ruta/al/archivo_de_origen2 ...}} {{ruta/al/destino}}

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.