install

This is a very useful command for copying files with extra functionality,

  • Change permissions

    install -x644 path/to/source path/to/destination

    Setting permissions to 644 after copying.

  • Create directory hierarchies

    install -d path/to/source path/to/destination

    Here the destination path's directory hierarchies will be created as needed.

Last updated