Moving And Copying Files Between Directories; Copying Files - HP 9000 Series Owner's Manual

Industrial workstations for hp-ux users
Hide thumbs Also See for 9000 Series:
Table of Contents

Advertisement

Moving and Copying Files between Directories

The
command can be used to move les from one lename to another or
mv
from one directory to another. For example, to move
directory, type:
$ cd
$ mv myfile projects
The general form of the
from path to path
mv
from path is the le name or path name of the le you want to move,
where
to path is the name of the path where you are moving the le.
and

Copying Files

To copy a le into a di erent directory, use the
make a copy of
myfile
$ cp myfile projects/myfile2
To make a new version of
type:
$ cp projects/myfile2 myfile3
The general form of the
from path to path
cp
from path is the le name or path name of the le you want to copy, and
where
to path is the path name of the directory or le to which you are copying.
If you copy a le to a directory, even if the directory has the
Caution
same name as the le, the directory will not be destroyed. But
a le of the same name
As a general rule, before using
ensure that the target le name to which you want to move or
copy doesn't already exist.
DRAFT
2/5/97 11:31
Move to your home directory rst.
command is as follows:
mv
named
in the
myfile2
named
myfile2
myfile3
command is as follows:
cp
in that directory would be.
into the
myfile
command. For example, to
cp
directory, type:
projects
in your current directory,
or
, use
or
mv
cp
ls
lsf
Using the Command Line
projects
4
to
4-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

700i series745i/50745i/100747i/50747i/100

Table of Contents