[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

installbsd Command

Purpose

Installs a command (BSD version of the install command).

Syntax

/usr/bin/installbsd[-c][-g Group] [-m Mode][-o Owner][-s] BinaryFileDestination

Description

The installbsd command installs the file specified by the BinaryFile parameter by moving it to a file or directory specified by the Destination parameter. Use of the -c flag copies the BinaryFile rather than moving it. If the specified Destination parameter is a directory, the BinaryFile is moved into the directory. If the specified Destination parameter already exists as a file, the installbsd command removes that file before the BinaryFile is moved. The installbsd command does not move a file onto itself.

Installing the file /dev/null creates an empty file.

Flags

-c Copies the file specified by the BinaryFile parameter to the file or directory specified by the Destination parameter.
-g Group Specifies a group for the file specified by the Destination parameter. The default group is staff.
-m Mode Specifies a mode for the file specified by the Destination parameter. The default mode is 755. The specified mode can be an octal number or a symbolic value.
-o Owner Specifies the owner for the file specified by the Destination parameter. The default owner is the root user.
-s Causes the file specified by the BinaryFile parameter to be stripped after installation.

Examples

To install a new command called fixit, enter:

installbsd -co mike fixit /usr/bin

This command sequence installs a new command by copying the program fixit to /usr/bin/fixit, with user mike as the owner.

Files

/usr/ucb/install Hard-link to the /usr/bin/installbsd file.
/usr/bin/installbsd Contains the installbsd command.

Related Information

The chgrp command, chmod command, chown command, cp command, install command, mv command, strip command.


[ Previous | Next | Contents | Glossary | Home | Search ]