install
install copys files and set attributes.[1]
- GNU Coreutils [EN] @ Fedora Package
- GNU Coreutils [EN] @ Homebrew Formula
Documentation
- install [EN] @ GNU Coreutils Manual
- man 1 'install' [EN]
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
- ↑ man 1 'install'