User Tools

Site Tools


wiki:2016cpmv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:2016cpmv [2017/08/23 16:12]
erin
wiki:2016cpmv [2017/08/23 16:14]
erin
Line 4: Line 4:
  
 The ''​cp''​ (CoPy) command is quite flexible. There are a few ways it can be used to copy a file. The ''​cp''​ (CoPy) command is quite flexible. There are a few ways it can be used to copy a file.
 +
 +
 +----
 +
  
 ==== Duplicating a file and giving it a new name ==== ==== Duplicating a file and giving it a new name ====
Line 26: Line 30:
 $cp ./file1.txt ./file2.txt $cp ./file1.txt ./file2.txt
 </​code>​ </​code>​
 +
 +
 +----
 +
  
 ==== Duplicating a file into a directory ==== ==== Duplicating a file into a directory ====
Line 95: Line 103:
   - Create a copy of this file in the directory "​01_Notes"​ called ''​ABOUT_these_notes.txt''​. Double check that the content is the same.   - Create a copy of this file in the directory "​01_Notes"​ called ''​ABOUT_these_notes.txt''​. Double check that the content is the same.
   - Create a copy of this file in the parent directory (one level up from where you are) keeping the file name the same.   - Create a copy of this file in the parent directory (one level up from where you are) keeping the file name the same.
 +  - Using a set of test directories,​ test what happens when you try to copy one directory into another using the command ''​$ cd dir1 dir2''​ versus ''​$ cd dir1/ dir2''​.
  
 ---- ----
wiki/2016cpmv.txt ยท Last modified: 2017/08/23 16:14 by erin