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 [OPTION]... [FICHIER]...

Copier SOURCE vers DEST ou plusieurs SOURCE(s) vers le RÉPERTOIRE existant, tout en définissant les modes de permission et propriétaire/groupe

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

Copie des fichiers vers une destination :

install {{chemin/fichier/source}} {{chemin/repertoire/destination}}

Copie des fichiers vers une destination en mettant à jour leur propriétaire :

install --owner {{utilisateur}} {{chemin/fichier/source}} {{chemin/repertoire/destination}}

Copie des fichiers vers une destination en mettant à jour leur groupe d’appartenance :

install --group {{utilisateur}} {{chemin/fichier/source}} {{chemin/repertoire/destination}}

Copie des fichiers vers une destination en mettant à jour leur mode :

install --mode {{+x}} {{chemin/fichier/source}} {{chemin/repertoire/destination}}

Copie des fichiers en mettant à jour leur dates d’accès et de modification à partir de leurs sources respectives :

install --preserve-timestamps {{chemin/fichier/source}} {{chemin/repertoire/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.