Commit | Line | Data |
---|---|---|
033e16ea KB |
1 | .\" Copyright (c) 1987 Regents of the University of California. |
2 | .\" All rights reserved. | |
db222088 | 3 | .\" |
033e16ea | 4 | .\" Redistribution and use in source and binary forms are permitted |
57a981eb KB |
5 | .\" provided that the above copyright notice and this paragraph are |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
033e16ea | 15 | .\" |
57a981eb | 16 | .\" @(#)install.1 6.5 (Berkeley) %G% |
db222088 | 17 | .\" |
ef8cedab | 18 | .TH INSTALL 1 "" |
db222088 KM |
19 | .UC 5 |
20 | .SH NAME | |
21 | install \- install binaries | |
22 | .SH SYNOPSIS | |
23 | .B install | |
24 | [ | |
25 | .B \-c | |
26 | ] [ | |
27 | .B \-m | |
28 | mode ] [ | |
29 | .B \-o | |
30 | owner ] [ | |
31 | .B \-g | |
32 | group ] [ | |
33 | .B \-s | |
8d09ec9f | 34 | ] file1 file2; or file1 ... fileN directory |
db222088 | 35 | .SH DESCRIPTION |
8d09ec9f KB |
36 | The file(s) are moved (or copied if the \fB-c\fP option is specified) |
37 | to the target file or directory. If the destination is a directory, then | |
38 | the \fIfile\fP is moved into \fIdirectory\fP with its original file-name. | |
39 | If the target file already exists, it is overwritten. | |
db222088 | 40 | .PP |
8d09ec9f KB |
41 | The mode is set to 755; the \fB-m\fP option may be used to specify |
42 | an alternate mode. | |
db222088 | 43 | .PP |
033e16ea KB |
44 | The \fB-o\fP and \fB-g\fP options may be used to specify an owner |
45 | and/or group, respectively. | |
db222088 | 46 | .PP |
8d09ec9f KB |
47 | The \fB-s\fP option causes the file to be stripped. It is an error |
48 | to attempt to strip a file not in the \fIa.out\fP format, but not to | |
49 | attempt to strip a file that has already been stripped. | |
db222088 | 50 | .PP |
8d09ec9f | 51 | \fIInstall\fP refuses to move a file onto itself. |
033e16ea KB |
52 | .PP |
53 | Installing ``/dev/null'' creates an empty file. | |
8d09ec9f KB |
54 | .SH "RETURN VALUE" |
55 | Upon successful completion a value of 0 is returned. Otherwise, a | |
56 | value of 1 is returned. | |
db222088 | 57 | .SH "SEE ALSO" |
8d09ec9f | 58 | chgrp(1), chmod(1), cp(1), mv(1), strip(1), a.out(5), chown(8) |