EasyManua.ls Logo

HP 382 - Copying a File to a Remote Host

HP 382
162 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
Loading...
FINAL TRIM SIZE : 7.5 in x 9.0 in
4
In this
case,
myfile
will
b
e
copied
as
myfile
in
to
the
remote
sub
directory
,
otherdir
.
If
y
ou
had
only
supplied
the
remote
host
name,
rcp
w
ould ha
ve
copied
myfile
in
to the
remote home
directory,
also as
myfile
.
Y
ou
can also
include a
lename in
the destination.
F
or
example,
to
cop
y
to
a
system
named
xyz
:
rcp
myfile
xyz:/users/leslie/otherfile
In
this
case,
y
ou
ha
v
e
copied
myfile
as
otherfile
,
in
the
remote
directory
leslie
.
Cop
ying
a
File
on
a
Remote
Host
to
Y
our
Local
Directory
Now,
to rev
erse
the
pro
cess,
here
is
ho
w
y
ou
w
ould
cop
y
a
le
fr
om
a
remote
host
in
to
y
our
lo cal
directory.
Use
the
follo
wing
syn
tax:
rcp
r
emote
hostname
:
r
emote
lename
lo
c
al
lename
F
or
example,
to cop
y
myfile
from
y
our
accoun
t
in
a
remote
system
xyz
in
to
y
our
curren
t
directory:
rcp
xyz:/users/leslie/myfile
.
The
dot
(
.
)
is
shorthand
for
\current
directory". In
this
case,
myfile
will
b
e
copied
as
myfile
from
the
remote
directory
in
to
y
our
curren
t
directory
.
You
do
not
ha
v
e
to
supply
the
destination
lename
if
y
ou
don't
w
an
t
to
cop
y
it
to
a
new
name.
If
y
ou w
ant
to cop
y
myfile
in
to
another
directory
in
y
our
home
system,
use
a
path
name,
absolute
or
relativ
e,
as
sho
wn:
rcp
xyz:/users/leslie/myfile
otherdir/
Or,
if
y
ou w
ant
to cop
y the
le to
another le
name in
another
directory:
rcp xyz:/users/leslie/myfile otherdir/otherfile
Run the
ls
command to conrm what y
ou ha
ve done.
4-22 Using the Command Line

Other manuals for HP 382

Related product manuals