18.18 Install Files

20211216

The install command can be used to install a file into a specified location. To install a file rtf.txt from the current directory into /usr/share/docs/ with owner -o kayon and in group -g dsa and permissions -rw-r--r-- set with -m 0644:

install -o kayon -g dsa -m 0644 rtf.txt /usr/share/docs/

The mode options used by chmod can also be used:

install -o kayon -g dsa --mode="u=rw,go=r" rtf.txt /usr/share/docs/


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0