date and time created 85/05/21 20:09:02 by libs
[unix-history] / usr / src / usr.bin / xinstall / install.1
CommitLineData
db222088
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
ef8cedab 5.\" @(#)install.1 6.1 (Berkeley) %G%
db222088 6.\"
ef8cedab 7.TH INSTALL 1 ""
db222088
KM
8.UC 5
9.SH NAME
10install \- install binaries
11.SH SYNOPSIS
12.B install
13[
14.B \-c
15] [
16.B \-m
17mode ] [
18.B \-o
19owner ] [
20.B \-g
21group ] [
22.B \-s
23] binary destination
24.SH DESCRIPTION
25.I Binary
26is moved (or copied if
27.B \-c
28is specified) to
29.IR destination .
30If
31.I destination
32already exists,
33it is removed before
34.I binary
35is moved.
36If the destination is a directory then
37.I binary
38is moved into the
39.I destination
40directory with its original file-name.
41.PP
42The mode for
43.I Destination
44is set to 755; the
45.B \-m
46.I mode
47option may be used to specify a different mode.
48.PP
49.I Destination
50is changed to owner root; the
51.B \-o
52.I owner
53option may be used to specify a different owner.
54.PP
55.I Destination
56is changed to group staff; the
57.B \-g
58.I group
59option may be used to specify a different group.
60.PP
61If the
62.B \-s
63option is specified the binary is stripped after being installed.
64.PP
65.I Install
66refuses to move a file onto itself.
67.SH "SEE ALSO"
68chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)