1753479 Members
5156 Online
108794 Solutions
New Discussion

Install Command

 
ehsvgup
Occasional Contributor

Install Command

Hi!!

Does any one have a clue about "install " command on hp-ux 11.00.

I want to create the fresh directory with specified permission and owner in a given path.

like i want to create vip dir. in /tmp dir. with permission 755 and owner as a "ehsvgup".

Can any body tell me the exact command syntax to do it.

I tried GNU fileutils 4.0 install command even but it does seem to be working.

Thanks in Advance
/vipin

BR19139
1 REPLY 1
ramesh_4
Occasional Advisor

Re: Install Command

install [option]... source dest
install [option]... source... directory
install -d [option]... directory...

In the first of these, the source file is copied to the dest target file.

In the second, each of the source files are copied to the destination directory.

In the last, each directory (and any missing parent directories) is created.

The following are the common options used with Install command

`-b'
`--backup'
Make backups of files that are about to be overwritten or removed.

`-d'
`--directory'
Create each given directory and any missing parent directories, setting the owner, group and mode as given on the command line or to the defaults.

`-m mode'
`--mode=mode'
Set the permissions for the installed file or directory to mode, which can be either an octal number, or a symbolic mode as in chmod, with 0 as the point of departure. The default mode is 0755--read, write, and execute for the owner, and read and execute for group and other.

`-o owner'
`--owner=owner'
If install has appropriate privileges (is run as root), set the ownership of installed files or directories to owner. The default is root. owner may be either a user name or a numeric user ID.



like to find out new things and compare with other flavours of unix