FINAL TRIM SIZE : 7.5 in x 9.0 in
4
Mo
ving
and
Cop
ying
Files betw
een Directories
The
mv
command
can
be
used to
mov
e les
from
one
lename
to
another
or
from
one directory
to
another.
F
or
example,
to
mo
v
e
myfile
in
to
the
projects
directory
,
t
yp
e:
$
cd
Move
to
your
home
dire
ctory rst.
$
mv
myfile
projects
The
general
form
of
the
mv
command
is
as
follo
ws:
mv
fr
om
p
ath
to
p
ath
where
fr
om
path
is the
le name
or
path
name
of
the
le
y
ou
w
an
t
to
mo
v
e,
and
to
p
ath
is
the
name
of the
path where
you
are mo
ving
the
le.
Cop
ying
Files
T
o
cop
y
a
le
in
to
a
dieren
t
directory
,
use
the
cp
command. F
or
example,
to
mak
e
a
cop
y
of
myfile
named
myfile2
in
the
projects
directory
,
t
yp
e:
$
cp
myfile
projects/myfile2
T
o
mak
e
a
new
v
ersion
of
myfile2
named
myfile3
in
y
our
curren
t
directory
,
t
ype:
$
cp
projects/myfile2
myfile3
The
general
form
of
the
cp
command
is
as
follo
ws:
cp
fr
om
p
ath
to
p
ath
where
fr
om
p
ath
is
the
le
name
or
path
name
of
the
le
you
wan
tto
cop
y
,
and
to path
is the
path
name
of
the
directory
or
le
to
whic
h
y
ou are
copying.
Caution
If y
ou cop
y a le to a directory
,ev
en if the directory has the
same name
as the le, the directory will not b e destro
yed. But
a le of the same name
in
that directory w
ould be.
As a general rule, b efore using
mv
or
cp
,use
ls
or
lsf
to
ensure that the target
le name to whic
hy
ou w
antto mo
veor
copy do esn't already exist.
Using the Command Line 4-9