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 does Vue track data changes?

Table of contents background example Misconceptio...

Method of using MySQL system database for performance load diagnosis

A master once said that you should know the datab...

Analysis of SQL integrity constraint statements in database

Integrity constraints Integrity constraints are f...

How to query or obtain images in a private registry

Docker queries or obtains images in a private reg...

JavaScript canvas to load pictures

This article shares the specific code of JavaScri...

Solution to the problem of failure to insert emoji expressions into MySQL

Preface I always thought that UTF-8 was a univers...

Baidu Input Method opens API, claims it can be ported and used at will

The relevant person in charge of Baidu Input Metho...

Two implementation solutions for vuex data persistence

Table of contents Business requirements: Solution...

Vue uses Canvas to generate random sized and non-overlapping circles

Table of contents Canvas related documents Effect...

How to use VirtualBox to simulate a Linux cluster

1. Set up HOST on the host Macbook The previous d...

Several commonly used single-page application website sharing

CSS3Please Take a look at this website yourself, ...