1. Upload the machine from linux linux file to another
format:
scp to transfer files root @ target ip: path
scp -r to pass the target directory root @ ip: Path
Examples:
scp /root/1.txt [email protected]: / root # upload files
scp -r / root / data [email protected]: / root # upload directory
2. From linux download files to native linux:
Format:
SCP [email protected]: / the root / Data / the root
SCP command username @ destination IP addresses: a home location file path
Examples:
scp [email protected]: /root/1.txt / root # Download file
scp -r [email protected]: / root / data / root # download directory
Note: Linux's IP, and the need to copy, upload and download directory to be according to their actual situation to be.
----------------
Disclaimer: This article is the original article CSDN bloggers "liangzier", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/liangzier/article/details/80413765