cp
Copy files
Usage: cp file1 file2
cp list-of-files dest-dir/.
Standard Input: Not used
Standard Output: Not used
SEE ALSO
For more information, see page 235 |
Useful options:
-i means interact with user and ask permission before overwriting an existing file (not available on older UNIX).
-p means preserve owner, group, and permissions, especially from root account (not available on all UNIX systems).
-r means copy directories recursively, so all subdirectories are also copied (not available on all UNIX systems).
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.