install

NAME

install - install binaries

SYNOPSIS

install [-cs] [-g group] [-m mode] [-o owner] file1 file2
install [-cs] [-g group] [-m mode] [-o owner] file1 ...  fileN directory

DESCRIPTION

The install(1) utility moves the file or files (or copies them if the -c option is specified) to the target file or directory. If the destination is a directory, the file is moved into directory with its original file name. If the target file already exists, it is overwritten if permissions allow.

-c
Copy the file. This flag turns off the default behavior of install(1) where it deletes the original file after creating the target.
-g
Specify a group.
-m
Specify an alternate mode. The default mode is set to rwxr-xr-x (0755). The specified mode can be either an octal or symbolic value. See chmod(1) for a description of possible mode values.
-o
Specify an owner.
-s
The install(1) utility executes the command strip(1) to strip binaries so that install can be portable over a large number of systems and binary types.

The install(1) utility attempts to prevent moving a file onto itself.

Installing /dev/null creates an empty file.

DIAGNOSTICS

Upon successful completion, a value of 0 is returned. Otherwise, a value of 1 is returned.

SEE ALSO

chgrp(1)

chmod(1)

cp(1)

mv(1)

strip(1)

chown(1)