Tutorial: Introduction to the Command Line

5. Copy, move, rename & delete files

5.2. Move and rename files

Now we're going to move newlist.txt to the directory John.

1. First go back to the root of the C-drive.

2. Type:
move newlist.txt John <ENTER>

3. Go to the subdirectory John and check the directory listing.

4. Because it is a bit confusing to have a copy of newlist.txt in subdirectory John, we're going to rename it:
rename newlist.txt listjohn.txt <ENTER>

5. Check the directory listing again.

6. Save the directory listing to a file called dirjohn.lst