Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
labs:unix_basics [2016/02/29 22:56] – [Delete Files] admin | labs:unix_basics [2017/03/15 16:07] – [Copy Files and Directories] admin | ||
---|---|---|---|
Line 30: | Line 30: | ||
==== Copy Files and Directories ==== | ==== Copy Files and Directories ==== | ||
- | * '' | + | To make a copy of a file ('' |
- | | + | |
+ | | ||
+ | |||
+ | For example | ||
+ | |||
+ | cp myfile.txt myfilecopy.txt | ||
+ | |||
+ | To copy a directory | ||
cp -r my_src_directory destination_directory | cp -r my_src_directory destination_directory | ||
Line 125: | Line 132: | ||
Note that what you type for the passwords does not show up on the screen for your security. | Note that what you type for the passwords does not show up on the screen for your security. | ||
+ | |||