.\" Copyright (c) 1987, 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)install.1 8.1.1 (2.11BSD) 1996/2/20 .\" .TH INSTALL 1 "February 20, 1996" .UC 5 .SH NAME \fBinstall\fP \- install binaries .SH SYNOPSIS .B install [\fB\-cs\fP] [\fB\-f\fP \fIflags\fP] [\fB\-g\fP \fIgroup\fP] [\fB\-m\fP \fImode\fP] [\fB\-o\fP \fIowner\fP] .I file1 file2 .sp .B install [\fB\-cs\fP] [\fB\-f\fP \fIflags\fP] [\fB\-g\fP \fIgroup\fP] [\fB\-m\fP \fImode\fP] [\fB\-o\fP \fIowner\fP] .I file1 \&... fileN directory .SH DESCRIPTION The file(s) are moved (or copied if the .B\-c option is specified) to the target file or directory. If the destination is a directory, then the .I file is moved into .I directory with its original filename. If the target file already exists, it is overwritten if permissions allow. .TP 8 .B\-c Copy the file. This flag turns off the default behavior of .B install where it deletes the original file after creating the target. .TP 8 .B\-f Specify the target's file flags. (See chflags(1) for a list of possible flags and their meanings.) .TP 8 .B\-g Specify a group. .TP 8 .B\-m Specify an alternate mode. The default mode is set to rwxr-xr-x (0755). The specified mode may be either an octal or symbolic value; see chmod(1) for a description of possible mode values. .TP 8 .B\-o Specify an owner. .TP 8 .B\-s .B Install exec's the command strip(1) to strip binaries so that install can be portable over a large number of systems and binary types. .PP By default, .B install preserves all file flags, with the exception of the ``nodump'' flag. .PP The .B install utility attempts to prevent moving a file onto itself. .PP Installing .I /dev/null creates an empty file. .PP Upon successful completion a value of 0 is returned. Otherwise, a value of 1 is returned. .SH SEE ALSO chflags(1), chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8) .SH HISTORY The .B install utility appeared in 4.2BSD.