Using scp to copy files from remote to home machine

Secure Copy (scp)

To copy a file from your computer to another computer with scp go to a command-line and type

 scp <file> <username>@<IP address or hostname>:<Destination>  

For Example : Copy your file to your remote computer you need to write

 scp /var/www/test/  

This will copy to the remote computer hostname is username is nikunj and destination path is /var/www/test.


-r  : Recursive

(Recursive) mean copy folders and it's sub-folder to the destination folder.

 scp -r /media/disk/summer_pics/ nikunj@"/var/www/Summer2014/"  

No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + ''; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();