GNU/Linux Command – INSTALL

install — Copy files and set attributes.

Summary:
‘install’ will copy single/multiple source(s) to destination, sets permission modes and owner/group, and take backup of existing files. It is very useful for writing the install scripts.

Examples:
$ install myfile Dir1 -- Copy myfile to Dir1 with same name. $ install myfile test -- Copy myfile to test. $ install -b myfile test -- Copy myfile to test. If test is alreadyexists, then take a backup (test~). $ install -b -S.bak myfile test -- Same as above. But backup filewill created with .bak suffix (test.bak). $ install --backup=t myfile test -- Take numbered backup(test.~1~). $ install -p myfile test -- Preserve the access and modification time, while copying the file. $ install -m 444 myfile test -- Copy myfile with specified set of permission mode. Default is 755. $ install -g newgrp myfile test -- Copy myfile & set GID to newgrp. $ install -s mybin test.bin -- Strip the symbol tables from installed binary executables.
Read: man install

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: