Monday 11 March 2013

scp command to upload and download files?

Scp stands for secure copy.

To transfer/put  a file to another server.

 scp <filename>  username@servername:path

logged in server ebsdev.user.com
========================
scp  initebsoltp.ora oraoltp@ebsoltp.user.com:/u01/oracle/11.2.0/

To download a file 
=============
To which location you want to download/get a file.
Here in the below example /u02/oracle/.

Suppose i want to get the file from the server ebsdev.user.com from this location /u01/oracle/apscheck.sql  to this server ebsoltp.user.com in this location /u02/oracle/

1)logged in to ebsoltp.user.com and location where you want to get file from ebsdev.user.com server.

 /u02/oracle/
scp  oraodev@ebsdev.user.com:/u01/oracle/apscheck.sql  .

No comments:

Post a Comment