Next: Moving files Up: First Steps into Previous: Creating new directories

Copying files

Copying files is done with the command cp:

/home/larry/foo#cp /etc/termcap .
/home/larry/foo#cp /etc/shells .
/home/larry/foo#ls -F
shells termcap
/home/larry/foo#cp shells bells
/home/larry/foo#ls -F
bells shells termcap
/home/larry/foo#

The cp command copies the files listed on the command line to the file or directory given as the last argument. Notice how we use the directory ``.'' to refer to the current directory.


abraham@iesd.auc.dk