Cp (Unix)

cp
Original author(s)AT&T Bell Laboratories
Developer(s)Various open-source and commercial developers
Initial releaseNovember 3, 1971 (1971-11-03)
Written inPlan 9: C
Operating systemUnix, Unix-like, Plan 9, Inferno, KolibriOS
PlatformCross-platform
TypeCommand
Licensecoreutils: GPLv3
Plan 9: MIT License

cp is a shell command for copying files and directories.

If the user has write access to a target file, the command copies the content by opening it in update mode. This preserves the file's inode instead of creating a new file with default permissions.

The command was part of Version 1 Unix,[1] and is specified by POSIX. The implementation from GNU has many additional options beyond the POSIX specification.[2] The command is bundled in GNU Core Utilities[3] and is available in the EFI shell.[4]

  1. ^ McIlroy, M. D. (1987). A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 (PDF) (Technical report). CSTR. Bell Labs. 139.
  2. ^ "GNU Coreutils: cp invocation". GNU.
  3. ^ "Cp(1): Copy files/Directories - Linux man page".
  4. ^ "EFI Shells and Scripting". Intel. Retrieved 2013-09-25.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search