Java Topics

Steps and commands to copy the files from linux server to local system(our laptop)

 ✓ Steps and commands to copy the files from linux server to local system(our laptop).

1. Press "cmd" in serach bar in your laptop. It will open command prompt in your local.

2. change to path where you want to save the file in your local system.

command: cd pathname


3. Login to the linux server as below.


   command: sftp username@servername

   ex: sftp temp@c0354qe


4. It will ask you the password to type.once password is typed press "enter" button.


5. now, you will be in linux server.


6. change to linux directory path from which path you want to copy the file from linux to local.

    command:  cd /ct-app/logs


7. to get the file,use below command.

    command: get filename


Note: suppose if you want to upload the file to linux server path from your local system, use below command.

command : put filename


8. once done, type below command to exit from the connect server .

 command: bye