Theodore Terry
asked on
Copy file (cp) from one command line (BSD) to another.
logged in via ssh, need to copy a file from another machine back to my machine.
What is the command for the extraction of the file.
I know how to cp a file from directory to directory or mv, can't remember the command.
Unix.
What is the command for the extraction of the file.
I know how to cp a file from directory to directory or mv, can't remember the command.
Unix.
scp /source/file user@targethost:/target/di rectory/
or
scp user@sourcehost:/source/fi le /target/directory/
or
scp user@sourcehost:/source/fi
ASKER
woolmilkporc:
I'm in the machine via ssh I want to send file to another remote server.
A directory is what I want to cp over.
Since I'm inside the machine, shouldn't there be a -R included, I'm confused about the second line.
If I can rap my head around the path I can get it.
I'm in the machine via ssh I want to send file to another remote server.
A directory is what I want to cp over.
Since I'm inside the machine, shouldn't there be a -R included, I'm confused about the second line.
If I can rap my head around the path I can get it.
To copy files and subdirectories I'm using:
# scp -r -p /source_directory/* username@ip_adresse:/targe t_director y
To copy a whole directory you can use:
# scp -r -p /source_directory username@ip_adresse:/targe t_director y
and pls check:
http://amath.colorado.edu/computing/software/man/scp.html
# scp -r -p /source_directory/* username@ip_adresse:/targe
To copy a whole directory you can use:
# scp -r -p /source_directory username@ip_adresse:/targe
and pls check:
http://amath.colorado.edu/computing/software/man/scp.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the detail explanation.
http://www.tuxfiles.org/linuxhelp/fileman.html