BSD 4_2 development
[unix-history] / usr / man / man1 / install.1
CommitLineData
58be0bbb
C
1.TH INSTALL 1 "22 April 1983"
2.UC 4
3.SH NAME
4install \- install binaries
5.SH SYNOPSIS
6.B install
7[
8.B \-c
9] [
10.B \-m
11mode ] [
12.B \-o
13owner ] [
14.B \-g
15group ] [
16.B \-s
17] binary destination
18.SH DESCRIPTION
19.I Binary
20is moved (or copied if
21.B \-c
22is specified) to
23.IR destination .
24If
25.I destination
26already exists,
27it is removed before
28.I binary
29is moved.
30If the destination is a directory then
31.I binary
32is moved into the
33.I destination
34directory with its original file-name.
35.PP
36The mode for
37.I Destination
38is set to 755; the
39.B \-m
40.I mode
41option may be used to specify a different mode.
42.PP
43.I Destination
44is changed to owner root; the
45.B \-o
46.I owner
47option may be used to specify a different owner.
48.PP
49.I Destination
50is changed to group staff; the
51.B \-g
52.I group
53option may be used to specify a different group.
54.PP
55If the
56.B \-s
57option is specified the binary is stripped after being installed.
58.PP
59.I Install
60refuses to move a file onto itself.
61.SH "SEE ALSO"
62chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)