home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: id Chapter 2
UNIX Commands
Next: Reference: ipcrm
 

install



install

 [

options

] 

file

 [

directories

]

Used primarily in makefiles to update files. install tries to locate an old version of file by searching user-supplied directories (or default directories such as /bin or /etc ). file is then copied to the directory, overwriting the older version. Normally, if no older file exists, install does nothing.

Options

-c dir

Conditional copy; if file already exists in dir , do nothing; otherwise, copy file to dir .

-f dir

Forced copy; copy file to dir , whether or not file is already there.

-g group

Set group ID of new file to group (privileged users only).

-i

When searching for file , ignore default directories but search specified directories . Normally, both sets are searched (with user-supplied directories searched before defaults). -c and -f are invalid with -i .

-m mode

Set permissions of new file to mode .

-n dir

Place file in dir if it's not in any of the default directories.

-o

Save old version of file in OLD file instead of overwriting it.

-s

Suppress all messages except error messages.

-u user

Set owner of new file to user .


Previous: Reference: id UNIX in a Nutshell: System V Edition Next: Reference: ipcrm
Reference: id Book Index Reference: ipcrm

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System