Skip to content
Service Servers

Service Servers

  • Cloudbase Solutions
  • Service Servers
Service Servers
Service Servers
Home / Linux / Copy files between servers using command line
Linux

Copy files between servers using command line

to copy files between servers using command line in Linux servers , you have to use the command line ( SCP ) the SCP can be used as follow   Copy files and folder from Remote Server to Local Server To copy folder from remote server to the current folder scp your_username@remoteservername.com:/some/local/directory . To coy…

to copy files between servers using command line in Linux servers , you have to use the command line ( SCP )

the SCP can be used as follow

 

Copy files and folder from Remote Server to Local Server

To copy folder from remote server to the current folder

scp your_username@remoteservername.com:/some/local/directory .

To coy a file name ( /backup/test.gz ) from remote server to a local server folder ( /home ) use the following

scp your_username@remoteservername.com:/backup/test.gz /home

 

Copy files and folders from Local Server to Remote Server

To copy folder from local server to remote server

scp -r /foldername your_username@remoteservername.com:/remote/directory/name

To copy file from local server to remote server

scp filename your_username@remoteservername.com:/remote/directory/name

 

Post Tags: #command#copy#Linux#SCP#SSH#transfer

Post navigation

Previous Previous
Linux extract compressed file using tar command
NextContinue
get PHP version from Linux command line
  • Troubleshooting VM RAM Allocation Error
  • Synchronize files between servers
  • Check folder and disk size in Linux command
  • IP Tables Block IP and Port
  • .htaccess SSL check problems

    Copyright © 2025 Service Servers

    • Cloudbase Solutions
    • Service Servers
    Search