INSTALL(1)

๐Ÿ’– INSTALL(1) ๐Ÿ’–

okay bestie, this is the install manual page from the User Commands section of the GNU coreutils girlies, and honestly? it's giving "cp but make it fashion." let's get into it ๐ŸŽ€


โœจ NAME โœจ

install โ€” copy files and set attributes ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

install [OPTION]... [-T] SOURCE DEST
install [OPTION]... SOURCE... DIRECTORY
install [OPTION]... -t DIRECTORY SOURCE...
install [OPTION]... -d DIRECTORY...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so this install program copies files (like, usually the ones you just compiled) into whatever destination locations you pick out. obsessed.

but real talk โ€” if your goal is downloading and installing a ready-to-use package on a GNU/Linux system, you should be using a package manager like yum(1) or apt-get(1) instead. that's just the move, fr fr.

in the first three forms, you copy SOURCE to DEST, or you copy multiple SOURCE(s) into the existing DIRECTORY, while also setting permission modes and owner/group. in the 4th form? you just create all components of the given DIRECTORY(ies). slay.

๐ŸŒŸ mandatory arguments to long options are also mandatory for the corresponding short options. no shortcuts, bestie.

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • --backup[=CONTROL] โ€” make a backup of each existing destination file ๐Ÿ’พ
  • -b โ€” like --backup but it does not accept an argument
  • -c โ€” (ignored) ๐Ÿ™ˆ yeah it just... sits there. iconic honestly
  • -C, --compare โ€” compare content of source and destination files, and if there's no change to content, ownership, and permissions, don't modify the destination at all. lowkey respectful of your files' peace
  • -d, --directory โ€” treat all arguments as directory names; create all components of the specified directories ๐Ÿ“
  • -D โ€” create all leading components of DEST except the last, or all components of --target-directory, then copy SOURCE to DEST
  • --debug โ€” explain how a file is copied. implies -v ๐Ÿ”
  • -g, --group=GROUP โ€” set group ownership, instead of the process' current group
  • -m, --mode=MODE โ€” set permission mode (as in chmod), instead of rwxr-xr-x
  • -o, --owner=OWNER โ€” set ownership (super-user only, so like... know your power level ๐Ÿ‘‘)
  • -p, --preserve-timestamps โ€” apply access/modification times of SOURCE files to the corresponding destination files โฐ
  • -s, --strip โ€” strip symbol tables
  • --strip-program=PROGRAM โ€” program used to strip binaries
  • -S, --suffix=SUFFIX โ€” override the usual backup suffix
  • -t, --target-directory=DIRECTORY โ€” copy all SOURCE arguments into DIRECTORY
  • -T, --no-target-directory โ€” treat DEST as a normal file
  • -v, --verbose โ€” print the name of each created file or directory ๐Ÿ—ฃ๏ธ
  • --preserve-context โ€” preserve SELinux security context
  • -Z โ€” set SELinux security context of the destination file and each created directory, to default type
  • --context[=CTX] โ€” like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX
  • --help โ€” display this help and exit ๐Ÿ†˜
  • --version โ€” output version information and exit

๐ŸŒˆ the backup suffix tea ๐ŸŒˆ

the backup suffix is '~', unless you set it with --suffix or SIMPLE_BACKUP_SUFFIX. and the version control method can be selected via the --backup option or through the VERSION_CONTROL environment variable. here are the values, bestie:

  • none, off โ€” never make backups (even if --backup is given) ๐Ÿ’€
  • numbered, t โ€” make numbered backups
  • existing, nil โ€” numbered if numbered backups exist, simple otherwise
  • simple, never โ€” always make simple backups

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

written by David MacKenzie. we stan. ๐Ÿซถ


๐Ÿ’œ REPORTING BUGS ๐Ÿ’œ


Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

this is free software: you are free to change and redistribute it. there is NO WARRANTY, to the extent permitted by law. ๐Ÿซฃ


๐Ÿ“ SEE ALSO ๐Ÿ“

full documentation <https://www.gnu.org/software/coreutils/install> โ€” or available locally via: info '(coreutils) install invocation' ๐Ÿ“–


and that's the whole page, babe! this is from GNU coreutils 9.12, dated September 2026 โ€” so go forth, copy your files, set your attributes, and remember: you're the main character of this terminal. periodt. ๐Ÿ’…โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from