143697Scael.\" Copyright (c) 1987, 1990 The Regents of the University of California. 232700Sbostic.\" All rights reserved. 319722Smckusick.\" 449955Scael.\" %sccs.include.redist.roff% 519722Smckusick.\" 6*54538Sbostic.\" @(#)install.1 6.12 (Berkeley) 06/28/92 732700Sbostic.\" 843697Scael.Dd 943697Scael.Dt INSTALL 1 1043697Scael.Os BSD 4.2 1143697Scael.Sh NAME 1243697Scael.Nm install 1343697Scael.Nd install binaries 1443697Scael.Sh SYNOPSIS 1543697Scael.Nm install 1643697Scael.Op Fl cs 1749955Scael.Op Fl m Ar mode 1843697Scael.Op Fl o Ar owner 1943697Scael.Op Fl g Ar group 2044955Scael.Ar file1 file2 2144955Scael.Nm install 2244955Scael.Op Fl cs 2349955Scael.Op Fl m Ar mode 2444955Scael.Op Fl o Ar owner 2544955Scael.Op Fl g Ar group 2643697Scael.Ar file1 2743697Scael\&... 2843697Scael.Ar fileN directory 2943697Scael.Sh DESCRIPTION 3039696SbosticThe file(s) are moved (or copied if the 3143697Scael.Fl c 3239696Sbosticoption is specified) to the target file or directory. 3339696SbosticIf the destination is a directory, then the 3443697Scael.Ar file 3539696Sbosticis moved into 3643697Scael.Ar directory 3739696Sbosticwith its original filename. 3839696SbosticIf the target file already exists, it is overwritten if permissions 3939696Sbosticallow. 4043697Scael.Pp 4149955Scael.Bl -tag -width Ds 4249955Scael.It Fl m 4349955ScaelSpecify an alternate mode. 44*54538SbosticThe default mode is set to 755 (rwxr-xr-x). 4539827SbosticThe specified mode may be either an octal or symbolic value; see 4643697Scael.Xr chmod 1 4739827Sbosticfor a description of possible mode values. 4849955Scael.It Fl o 4943697ScaelSpecify an owner. 5049955Scael.It Fl g 5143697ScaelSpecify a group. 5249955Scael.It Fl s 5343697Scael.Nm Install 5439696Sbosticexec's the command 5543697Scael.Xr strip 1 5639696Sbosticto strip binaries so that install can be portable over a large 5739696Sbosticnumber of systems and binary types. 5849955Scael.El 5943697Scael.Pp 60*54538SbosticThe 61*54538Sbostic.Nm install 62*54538Sbosticutility attempts to prevent moving a file onto itself. 6343697Scael.Pp 64*54538SbosticThe 65*54538Sbostic.Nm install 66*54538Sbosticutility always attempts to preserve the file flags. 67*54538Sbostic.Pp 6843697ScaelInstalling 6944955Scael.Pa /dev/null 7043697Scaelcreates an empty file. 7143697Scael.Pp 7239696SbosticUpon successful completion a value of 0 is returned. 7339696SbosticOtherwise, a value of 1 is returned. 7443697Scael.Sh SEE ALSO 75*54538Sbostic.Xr chflags 1 , 7643697Scael.Xr chgrp 1 , 7743697Scael.Xr chmod 1 , 7843697Scael.Xr cp 1 , 7943697Scael.Xr mv 1 , 8043697Scael.Xr strip 1 , 8143697Scael.Xr chown 8 8243697Scael.Sh HISTORY 8349955ScaelThe 8449955Scael.Nm install 8549955Scaelutility appeared in 8649955Scael.Bx 4.2 . 87