add Berkeley specific copyright
[unix-history] / usr / src / usr.bin / xinstall / install.1
CommitLineData
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
21install \- install binaries
22.SH SYNOPSIS
23.B install
24[
25.B \-c
26] [
27.B \-m
28mode ] [
29.B \-o
30owner ] [
31.B \-g
32group ] [
33.B \-s
8d09ec9f 34] file1 file2; or file1 ... fileN directory
db222088 35.SH DESCRIPTION
8d09ec9f
KB
36The file(s) are moved (or copied if the \fB-c\fP option is specified)
37to the target file or directory. If the destination is a directory, then
38the \fIfile\fP is moved into \fIdirectory\fP with its original file-name.
39If the target file already exists, it is overwritten.
db222088 40.PP
8d09ec9f
KB
41The mode is set to 755; the \fB-m\fP option may be used to specify
42an alternate mode.
db222088 43.PP
033e16ea
KB
44The \fB-o\fP and \fB-g\fP options may be used to specify an owner
45and/or group, respectively.
db222088 46.PP
8d09ec9f
KB
47The \fB-s\fP option causes the file to be stripped. It is an error
48to attempt to strip a file not in the \fIa.out\fP format, but not to
49attempt 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
53Installing ``/dev/null'' creates an empty file.
8d09ec9f
KB
54.SH "RETURN VALUE"
55Upon successful completion a value of 0 is returned. Otherwise, a
56value of 1 is returned.
db222088 57.SH "SEE ALSO"
8d09ec9f 58chgrp(1), chmod(1), cp(1), mv(1), strip(1), a.out(5), chown(8)