Copy files from Windows to Linux
Sometimes you need to send files from Windows to linux, and using the scp command to transmit files in the command window is a good choice.
Assume that we need to copy the file 1.txt to the user directory of Linux (192.168.43.235).
- Acquire the linux user account, e.g.
user - In the directory where the file is located, open the Powershell window by right click with SHIFT key pressed. Enter the command
scp .\1.txt [email protected]:./
Enter the password according to the prompts, you can see that the upload is successful.
Notes
The files in Windows need to be placed in a path without Chinese characters, otherwise an error may occur.