EasyManuals Logo
Home>HP>Server>9000 Series

HP 9000 Series User Manual

HP 9000 Series
214 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #61 background imageLoading...
Page #61 background image
FINAL TRIM SIZE : 7.0 in x 8.5 in
4
Moving and Copying Files between Directories
The
mv
command can b e used to mo
ve les from one lename to another or
from one directory to another. F
or example, to move
myfile
into the
projects
directory,typ e:
$cd
Move to your home dir
ectory rst.
$ mv myfile projects
The general form of the
mv
command is as follows:
mv
from path to path
where
from path
is the le name or path name of the le y
ou wantto move,
and
to path
is the name of the path where you are moving the le.
Copying Files
To copy a le into a dierent directory, use the
cp
command. For example, to
make a copyof
myfile
named
myfile2
in the
projects
directory,typ e:
$ cp myfile projects/myfile2
To make a new version of
myfile2
named
myfile3
in your current directory,
type:
$ cp projects/myfile2 myfile3
The general form of the
cp
command is as follows:
cp
from path to path
where
from path
is the le name or path name of the le y
ou want to copy, and
to path
is the path name of the directory or le to whic
hyou are copying.
Caution
If you copy a le to a directory,even if the directory has the
same name as the le, the directory will not be destroyed. But
a le of the same name
in
that directory would b e.
As a general rule, before using
mv
or
cp
, use
ls
or
lsf
to
ensure that the target le name to whichyou wanttomoveor
copy do esn't already exist.
DRAFT
2/5/97 11:31
Using the Command Line 4-9

Table of Contents

Other manuals for HP 9000 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 9000 Series and is the answer not in the manual?

HP 9000 Series Specifications

General IconGeneral
BrandHP
Model9000 Series
CategoryServer
LanguageEnglish

Related product manuals