Linux uses the scp command to copy files to the local computer and copy local files to the remote server

Linux uses the scp command to copy files to the local computer and copy local files to the remote server

As shown below:

Copy the remote server's files to the local:

scp -r -P port number username@IP address:/usr/local/tomcat_airc/webapps/ /tmp/kyj/

Copy local files to the remote server:

scp -r /tmp/kyj/sys.war username@IP address:/usr/local/tomcat_airc/webapps/

The above article on how to use scp command in linux to copy files locally and copy local files to remote server is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

You may also be interested in:
  • Vue-CLI 3 scp2 automatic deployment of projects to the server method
  • Python calls scp to upload files to the server example
  • How to use ssh and scp through secret keys in Windows
  • Python executes scp command to copy files and folders to the directory of the remote host
  • Detailed explanation of how to pass password to ssh/scp command in bash script
  • Python Pexpect implements the method of scp copying with password input
  • Detailed explanation of using scp command to copy files remotely in Linux
  • scp copies data from one linux server to another linux server
  • How to implement scp operation in Android

<<:  Introduction to new features of MySQL 8.0.11

>>:  The difference between this.$router and this.$route in Vue and the push() method

Recommend

How to implement Nginx configuration detection service status

1. Check whether the check status module is insta...

How to simulate enumeration with JS

Preface In current JavaScript, there is no concep...

CSS implements the web component function of sliding the message panel

Hello everyone, I wonder if you have the same con...

JavaScript Closures Explained

Table of contents 1. What is a closure? 1.2 Memoi...

Briefly describe the difference between MySQL and Oracle

1. Oracle is a large database while MySQL is a sm...

Implementation of CSS3 button border animation

First look at the effect: html <a href="#...

Solve the problem of resetting the Mysql root user account password

Problem description: The following error message ...

mysql5.7.18 decompressed version to start mysql service

The decompressed version of mysql5.7.18 starts th...

Vue3 manual encapsulation pop-up box component message method

This article shares the specific code of Vue3 man...

Detailed explanation of the processing of the three Docker Nginx Logs

Because colleagues in the company need Nginx log ...

MySQL installation tutorial under Linux centos7 environment

Detailed introduction to the steps of installing ...

Analysis of the project process in idea packaging and uploading to cloud service

one. First of all, you have to package it in idea...

Simple implementation method of vue3 source code analysis

Table of contents Preface 🍹Preparation 🍲vue3 usag...