One, download files from the server to the native
1, modify the file belongs to
Because you can only download files that belong to your own file, you should make changes to the action that the file belongs to.
Chown Hudelei/opt/logs/tomcat/app/tomcat_stk_nm/stk-time.log
2. Download to this machine
SCP [Email Protected]:/opt/logs/tomcat/app/tomcat_stk_nm/stk-time.log/users/hvvi/desktop
3. Enter the password
Second, upload folder to the server
1, scp-r/users/hddvvi/desktop/load [email protected]:/opt/logs/tomcat/app/tomcat_stk_nm/
Note: Add-R to error: not a regular file
2, enter the password 3, the file moved upper MV Filename.java. /
Note: This article uses Mac native and Linux servers.
Here's how to use the command to transfer files between Mac native and Linux, and if you want to transfer files between the two systems, try the method described in this article.
OS X && Linux File Transfer Basics commands