INSTALL(1)

πŸ’– INSTALL(1) β€” the install girlie's guide πŸ’–

okay so bestie, welcome to the General Commands Manual entry for install πŸŽ€ yes it's really called that, and no it is not about downloading anything, it's a whole vibe of its own. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

install β€” copy SOURCE to DEST, or copy multiple SOURCE(s) into the existing DIRECTORY, while also setting permission modes and owner/group. it's cp but it's doing the most, and honestly? we respect it. πŸ’…


✨ SYNOPSIS ✨

install [OPTION]... [FILE]...

✨ DESCRIPTION ✨

okay so the whole thing, in one breath: it copies SOURCE to DEST, or it copies multiple SOURCE(s) into the existing DIRECTORY, and while it's at it, it sets the permission modes and the owner/group too. one trip, multiple jobs, main character energy fr fr πŸ‘‘


✨ OPTIONS ✨

ngl there are a LOT of these, and we are doing every single one, no skips, periodt.

  • --backup[=<CONTROL>] β€” makes a backup of every existing destination file πŸ’Ύ
  • -b β€” same energy as --backup, but it does not take an argument
  • -c β€” literally ignored. that's it. it's just there. iconic of it tbh πŸ’€
  • -C, --compare β€” compares each pair of source and destination files, and in some cases it just… doesn't touch the destination at all 🌸
  • -d, --directory β€” treats all arguments as directory names, and creates all components of the specified directories 🧚
  • -D β€” creates all the leading components of DEST except the last one, then copies SOURCE to DEST ✨
  • -g, --group <GROUP> β€” sets group ownership, instead of whatever the process's current group is
  • -m, --mode <MODE> β€” sets the permission mode (same idea as in chmod), instead of rwxr-xr-x
  • -o, --owner <OWNER> β€” sets ownership (super-user only, bestie, don't try it otherwise πŸ™ˆ)
  • -p, --preserve-timestamps β€” applies the access/modification times of the SOURCE files onto the corresponding destination files ⏰
  • -s, --strip β€” strips symbol tables
  • --strip-program <PROGRAM> β€” the program used to strip binaries
  • -S, --suffix <SUFFIX> β€” overrides the usual backup suffix πŸŽ€
  • -t, --target-directory <DIRECTORY> β€” moves all SOURCE arguments into DIRECTORY
  • -T, --no-target-directory β€” treats DEST as a normal file
  • -v, --verbose β€” explains what is being done πŸ—£οΈ
  • -P, --preserve-context β€” preserves security context
  • -Z β€” sets the SELinux security context of the destination file, and of each created directory, to the default type
  • --context [<CONTEXT>] β€” sets the security context of files and directories
  • -U, --unprivileged β€” does not require elevated privileges to change the owner, the group, or the file flags of the destination
  • -h, --help β€” prints help 🫢
  • -V, --version β€” prints version
  • [files]

✨ VERSION ✨

v(uutils coreutils) 0.12.0

✨ EXAMPLES ✨

copy files to the destination:

install path/to/source_file1 path/to/source_file2 ...
path/to/destination

copy files to the destination, setting their ownership:

install [-o|--owner] user path/to/source_file1 path/to/source_file2 ...
path/to/destination

copy files to the destination, setting their group ownership:

install [-g|--group] user path/to/source_file1 path/to/source_file2 ...
path/to/destination

copy files to the destination, setting their mode:

install [-m|--mode] +x path/to/source_file1 path/to/source_file2 ...
path/to/destination

copy files and apply access/modification times of source to the destination:

install [-p|--preserve-timestamps] path/to/source_file1
path/to/source_file2 ... path/to/destination

copy files and create the directories at the destination if they don't exist:

install -D path/to/source_file1 path/to/source_file2 ...
path/to/destination
the examples are provided by the tldr-pages project https://tldr.sh under the CC BY 4.0 License πŸ“œ and please note that, since uutils is a work in progress, some examples might fail. not us being honest and transparent, we love to see it πŸ’œ

aaaand that's the whole page bestie 🌈 no cap, you now know install better than most people on this planet.

this was the General Commands Manual entry for install, from uutils coreutils 0.12.0, dated 2026-09-25. go forth and copy things responsibly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from