install

From RaySoft

install copys files and set attributes.[1]

Documentation

Syntax

install [PARAMETER ...] SOURCE DESTINATION

Parameters

-b, --backup
Make a backup of each existing destination file.
-g GROUP, --group=GROUP
Set GROUP ownership, instead of process' current group.
-m MODE, --mode=MODE
Set permission MODE (as in chmod), instead of rwxr-xr-x.
-o OWNER, --owner=OWNER
Set OWNER (super-user only).
-Z CONTEXT, --context=CONTEXT
Set security CONTEXT of files and directories (SELinux).

Examples

Create a file with given permissions
sudo install --owner='https' --group='https' --mode=0640 \
       '/dev/null' '/var/www/htusers'

References

  1. man 1 'install'