Monday, March 7, 2016

LINUX Command COPY FILE



You can do this with the scp command. scp uses the SSH protocol to copy files across system by extending the syntax of cp.
Copy something from this system to some other system:
scp /path/to/local/file username@hostname:/path/to/remote/file          
Copy something from some system to some other system:
scp username1@hostname1:/path/to/file username2@hostname2:/path/to/other/file   
Copy something from another system to this system:
scp username@hostname:/path/to/remote/file /path/to/local/file

No comments:

Post a Comment