File/folder copy between Linux two servers
The command required to cross-server copy is SCP.
----------------------Copy Folder----------------------------------------------
Copy the current folder Tempa to the/tmp/wang/folder of the target server 10.127.40.25 server
Scp-r original folder [email protected]:/home (Destination file path)
Where user is the username of the target server, execute the command prompt to enter the password, then enter the password to
----------------------Copy Files----------------------------------------------
Copy the current folder TempA.txt to the/tmp/wang/folder of the destination server IP server
SCP source file [email protected]:/home (Destination file location)
Where USR is the user name of the target server, execute a command prompt to enter a password, then enter the password
Such as:
scp who.py [email protected]:/root/tools结果:[[email protected] tools]# lltotal 0[[email protected] tools]# pwd/root/tools[[email protected] tools]# lltotal 1-rw-r--r-- 1 root root 197 Feb
File/folder copy between Linux two servers