How to use commands to transfer files between Mac and Linux

  
                

We all know that the transfer between the same system is easy to implement, but it is difficult to transfer files between different systems. Today, Xiaobian wants to introduce you how to use commands for Mac and Linux systems. File transfer, let's get to know it.

First, download files from the server to the machine

1, modify the file belongs

Since you can only download files belong to their own files, so to make changes The operation to which the file belongs.

chown hudelei /opt/logs/tomcat/app/tomcat_stk_nm/stk-time.log

2. Download to this machine

scp [email protected]:/Opt /log /////////////////////1, scp -r /Users/hddvvi/Desktop/load [email protected]:/opt/logs/tomcat/app/tomcat_stk_nm/

Note: add -r, otherwise it will give an error: not a regular File

2. Enter the password 3. The file is moved to the upper layer mv filename.java. . /

Note: This article uses the mac native and linux server.

The above is a way to use the command to transfer files between Mac native and Linux. If you want to transfer files between these two systems, try the method described in this article.

Copyright © Windows knowledge All Rights Reserved