In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, when I deal with the problem of a project to be migrated, I suddenly find that how to move so many pictures, maybe the first thing that comes to mind is to download it from this server and then upload it to another server. This method is really feasible, but it is too time-consuming. Today I will teach you how to quickly transfer files and folders between the two servers.
Step 1: open our remote connection tool and enter the account password to log in to the server, as shown in the figure:
Click on the file to open or create a new session, and enter the host's ip and account password. If you have already logged in, just click on the + icon at the bottom of the file.
Step 2: find the file or folder you want to transfer:
There are so many pictures here. I'll pass one at random. If we enter pwd, we can see that the path of the picture is / home/helpteach/project/mallupload/.
Step 3: start transferring files:
Input: scp / home/helpteach/project/mallupload/1509681299449.png wasadmin@10.127.40.25:/home/test
Then hit the enter key and you can see that the file is being transferred, and so on, the mouse flash shows that the transfer has been completed, so we can disassemble the statement.
Copy the folder (including the folder itself)
Scp-r / home/helpteach/project/mallupload/ wasadmin@10.127.40.25:/home/test
Copy all files under the folder (excluding the folder itself)
Scp / home/helpteach/project/mallupload/* wasadmin@10.127.40.25:/home/test
Copy the file and rename it
Scp / home/helpteach/project/mallupload/1509681299449.png wasadmin@10.127.40.25:/home/test/test.png
/ home/helpteach/project/mallupload/1509681299449.png: the file to be transferred
Wasadmin: target server ssh account name
@ followed by: IP address of the target server
: later: the file save directory to be transferred to the target server
These are all the steps and knowledge points about transferring files and folders between two Linux servers. Thank you for your reading and support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.