next up previous contents index
Next: Viewing and Editing Files Up: Managing Files and Directories Previous: Deleting Files   Contents   Index

Copying Files

You can copy files using the cp command. This command can either duplicate the file in the same directory or copy the file to another directory. First how to duplicate a file in the same directory:

bash$ cp newfile5.txt newfile6.txt

You can now create a directory and copy the file into it:

bash$ mkdir temp2
bash$ cp newfile5.txt temp2

Joseph Colton 2002-09-24