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/03/25 02:38] – [Copy Files and Directories] admin | labs:unix_basics [2017/03/15 16:07] – [Copy Files and Directories] admin | ||
---|---|---|---|
Line 33: | Line 33: | ||
cp < | cp < | ||
+ | | ||
+ | For example | ||
+ | |||
+ | cp myfile.txt myfilecopy.txt | ||
- | To copy the contents of a directory, use the '' | + | To copy a directory |
cp -r my_src_directory destination_directory | cp -r my_src_directory destination_directory | ||
Line 128: | 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. | ||
+ | |||