1INSTALL(1)                       User Commands                      INSTALL(1)
2
3
4

NAME

6       install - copy files and set attributes
7

SYNOPSIS

9       install [OPTION]... [-T] SOURCE DEST
10       install [OPTION]... SOURCE... DIRECTORY
11       install [OPTION]... -t DIRECTORY SOURCE...
12       install [OPTION]... -d DIRECTORY...
13

DESCRIPTION

15       In  the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to
16       the existing DIRECTORY, while setting permission modes and owner/group.
17       In the 4th form, create all components of the given DIRECTORY(ies).
18
19       Mandatory  arguments  to  long  options are mandatory for short options
20       too.
21
22       --backup[=CONTROL]
23              make a backup of each existing destination file
24
25       -b     like --backup but does not accept an argument
26
27       -c     (ignored)
28
29       -d, --directory
30              treat all arguments as directory names; create all components of
31              the specified directories
32
33       -D     create all leading components of DEST except the last, then copy
34              SOURCE to DEST
35
36       -g, --group=GROUP
37              set group ownership, instead of process' current group
38
39       -m, --mode=MODE
40              set permission mode (as in chmod), instead of rwxr-xr-x
41
42       -o, --owner=OWNER
43              set ownership (super-user only)
44
45       -p, --preserve-timestamps
46              apply access/modification times of SOURCE files to corresponding
47              destination files
48
49       -s, --strip
50              strip symbol tables
51
52       -S, --suffix=SUFFIX
53              override the usual backup suffix
54
55       -t, --target-directory=DIRECTORY
56              copy all SOURCE arguments into DIRECTORY
57
58       -T, --no-target-directory
59              treat DEST as a normal file
60
61       -v, --verbose
62              print the name of each directory as it is created
63
64       -P, --preserve_context (SELinux) Preserve security context
65
66       -Z, --context=CONTEXT
67              (SELinux) Set security context of files and directories
68
69       --help display this help and exit
70
71       --version
72              output version information and exit
73
74       The   backup   suffix   is  `~',  unless  set  with  --suffix  or  SIM‐
75       PLE_BACKUP_SUFFIX.  The version control method may be selected via  the
76       --backup  option  or  through the VERSION_CONTROL environment variable.
77       Here are the values:
78
79       none, off
80              never make backups (even if --backup is given)
81
82       numbered, t
83              make numbered backups
84
85       existing, nil
86              numbered if numbered backups exist, simple otherwise
87
88       simple, never
89              always make simple backups
90

AUTHOR

92       Written by David MacKenzie.
93

REPORTING BUGS

95       Report bugs to <bug-coreutils@gnu.org>.
96
98       Copyright © 2007 Free Software Foundation, Inc.
99       This is free software.  You may redistribute copies  of  it  under  the
100       terms       of       the      GNU      General      Public      License
101       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
102       extent permitted by law.
103

SEE ALSO

105       The  full  documentation for install is maintained as a Texinfo manual.
106       If the info and install programs are properly installed at  your  site,
107       the command
108
109              info install
110
111       should give you access to the complete manual.
112
113
114
115GNU coreutils 6.9                 March 2007                        INSTALL(1)
Impressum