Tutorial: Introduction to the Command Line

5. Copy, move, rename & delete files

5.1. Copy files

1. Now we can copy the file list.txt to a new file by typing:
copy list.txt newlist.txt <ENTER>

2. Check if the file is added to the directory

3. We can append text files with the copy command. Type:
copy list.txt+newlist.txt listappend.txt <ENTER>

4. Check the contents of the file listappend.txt.

5. We can also copy list.txt to subdirectory John:
copy list.txt john\newlist2.txt <ENTER>

6. Go to the subdirectory John and check the contents of the subdirectory.