📄 install.1
字号:
.TH INSTALL 1.SH NAMEinstall \- install files.SH SYNOPSIS.in +5.ti -5.B install.RB [ \-lcsz\fIN\fP "] [" \-o.IR owner ].RB [ \-g.IR group ].RB [ \-m.IR mode ].RB [ \-S.IR stack ].RI [ file1 ].I file2.br.ti -5.B install.RB [ \-lcsz\fIN\fP "] [" \-o.IR owner ].RB [ \-g.IR group ].RB [ \-m.IR mode ].RB [ \-S.IR stack ].IR file " ... " dir.br.ti -5.B install \-d.RB [ \-o.IR owner ].RB [ \-g.IR group ].RB [ \-m.IR mode ].I directory.in -5.SH DESCRIPTION.de SP.if t .sp 0.4.if n .sp...B Installputs executables, manual pages, and library files in their proper placein the bin, man, and lib directories. The first two forms of thecommand are like.BR cp (1)copying either one file to another or copying several files to adirectory. The "\fB\-d\fP" form is like.BR mkdir (1)with the.B \-pflag..I File1may be omitted if neither.B \-lnor.B \-cis given to change the attributes of.IR file2 ..PPAttributes are always copied from the source file, use the options to change.Note that the source file's attributes are changed with the destination fileif they are linked. So copy the file if you change it in a way that makesit read-only. You would otherwise not be able to compile a command again..SH OPTIONS.TP.B \-lLink the destination to the source file instead of copying it. This is doneto either save space on a file system with both the source and the bindirectories on it, or to install synonyms to a command..TP.B \-cCopy the source file to its proper place. This option is the default if.B \-lis not given. With.BR \-l ,the file is copied if the link fails..TP.B \-sStrip the destination file of its symbol table,.I ifit is an executable, and.I ifit is actually copied. It has no effect on a link or a non-executable..TP.B \-zCompress the executable using.BR compress (1)and prepend a header line that calls.BR zexec (1)to decompress and execute the binary. This will on average save 40% diskspace at the expense of a slower startup time. Like.B \-sthe file must be actually copied for the flag to have effect..TP.BI \- NUse.BI "gzip \-" Nto compress the binary. You may see up to 60% space savings, but it willtake much longer..I Nis a digit from 1 to 9 telling the compression effort, see.BR gzip (1)..TP.B \-dMake a directory, usually to install files in a separate directory in alibrary. Intermediate directories in the path are created with the sameattributes as the final directory. Only the attributes of the finaldirectory are set if the directory exists..TP.BI \-o " owner"Set the owner of the target. This only works if the invoker is thesuper-user, or if.B installis run setuid root and the invoker is a member of group zero. If.B \-ois omitted then the ownership is copied from the source file, or set tothe id of the invoker if a directory is made..TP.BI \-g " group"Like.BR \-o ,but for the group ownership of the target..TP.BI \-m " mode".I Modeis an octal number that specifies the mode the target should get. Thedefault is the source file's mode with a.B chmod a+rXapplied to it, or 755 for a new directory. Implies.BR "\-o 0" ,or.BR "\-g 0"if a file is to be set-uid or set-gid and the invoker has permission tochange ownership. This trick allows a group 0 member to install third partysoftware, even though it expects to be installed by root..TP.BI \-S " stack"Sets the maximum amount of heap + stack that an executable may have whenrunning. The argument is a C-style decimal, octal or hexadecimalnumber, optionally followed by the multipliers.BR m ,.BR k ,.BR w ,and.B bfor mega (1024*1024), kilo (1024), "word" (2 or 4), and byte (1). Uppercase.B Mis also accepted for those who know what S.I. means. The compilers use.B \-S 32kwby default, that translates to 64kb for an 8086, and 128kb for otherarchitectures. This option is ignored on a non-executable..SH "SEE ALSO".BR ln (1),.BR cp (1),.BR strip (1),.BR compress (1),.BR gzip (1),.BR zexec (1),.BR chown (8),.BR chgrp (8),.BR chmod (1),.BR chmem (1),.BR mkdir (1)..SH BUGSUppercase.BR K ,.BR W ,and.B Bare also accepted for those who don't know what S.I. means..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -