SVN deletes all the. svn files
Note: Copy one file to another file or copy several files to another directory.
-A as far as possible, file status, permissions and other information are reproduced as the original.
-R If the source contains a directory name, then the directory of the files are also copied to the destination.
-F If a file with the same file name exists at the destination, delete it before copying it.
The first is FTP, which is one of the Linux installation FTP Server, this can be another use of FTP client program for file copy.
The second approach is to use the Samba service, similar to the Windows file copy of the way to operate, more concise and convenient.
The third way is to use the SCP command for file copying.
The SCP is a security file copy, based on SSH login. Easy to operate, such as to the current one file copy to a remote other host, you can command the following.
You will then be prompted to enter the login password for the other 172.19.2.75 host's root user, and then copy it.
If you want to reverse the operation, it is also easy to copy the files from the remote host to the current system.
Linux's SCP commands allow you to copy files and directories between Linux;
The SCP can replicate files between 2 Linux hosts;
Command basic format:
SCP [Optional parameters] File_source File_target
= = =
copy locally to remote
= = = Copy File:
* Command grid Type:
SCP local_file Remote_username@remote_ip:remote_folder
SCP local_file remote_username@remote_ip:remote_file
SCP local_file remote_ip:remote_folder
SCP local_file remote_ip:remote_file
1th, 2 specified user names, The command needs to enter the password after execution, the 1th specifies only the remote directory, the file name is unchanged, and the 2nd specifies the filename;
3rd, 4 did not specify a user name, The command needs to enter a username and password after execution, the 3rd specifies only the remote directory, the file name is unchanged, and the 4th specifies the filename;
scp/home/space/ Music/1.mp3 Www.cumt.edu.cn:/home/root/others/music
* Copy directory:
* Command format:
Scp-r Local_folder Remote_username@remote_ip:remote_folder
Scp-r Local_folder Remote_ip:remote_folder
The 1th specifies the user name, the command needs to enter the password after the execution;
The 2nd does not specify the user name, the command needs to enter the user name and password after execution;
The above command copies the local music directory to the remote others directory, which is remotely available after replication. /others/music/Directory
from remote replication to local
From remote to local, as long as the following 2 parameters of the command will be copied from the local to the remote order can be replaced;
The simplest applications are as follows:
SCP Local username @IP address: filename 1 remote username @IP address: filename 2
[Local username @IP address:] You may need to enter the password for the remote user name without entering it.
Several parameters that may be useful:
-V is the same as the-V meaning in most Linux commands, and is used to show progress. Can be used to view connections, authentication, or configuration errors.
-C enables compression options.
-P Select the port. Note-P has been used by RCP.
-4 forcibly use IPV4 address.
-6 forcibly use IPV6 address.
Note two points:
1. If the remote server firewall has special restrictions, the SCP will go to the special port, specific port depending on the situation, the command format is as follows:
#scp-P 4588 firstname.lastname@example.org:/usr/local/sin.sh /home/administrator
2. Use the SCP to be aware of whether the user you are using has permission to read the appropriate files for the remote server.
SCP Remote Copy
SSH provides commands and shells to log on to a remote server. It does not allow you to copy files by default, but it provides an "SCP" command. Suppose you want to copy a file named "Dumb" in the current directory of your local computer to a remote server www.foobar.com your home directory. And your account on the remote server is named "Bilbo". You can use this command:
SCP dumb email@example.com:.
Copy the file back with this command:
The SCP command is the most convenient and useful command in SSH, just imagine that the direct transfer of files between the two servers is completely solved with a single SCP command.
You can run #scp servername:/home/ftp/pub/file1 on a single server as root. This will be the other server on the file/home/ftp/pub/file1 directly to the current directory of the machine, of course, you can also use #scp/tmp/file2 servername:/boot the file on this machine
/tmp/file2 sent to the/boot directory of another machine.
And the entire transfer process is still encrypted with SSH.
1: Copy Local files to the remote machine:
SCP local filename account @192.168.80.80: remote machine directory
Example: Scp/home/test firstname.lastname@example.org:/home/testdir/
2: Copy the files on the remote machine to the Local:
SCP Account @192.168.80.80: File full path local directory
Example: SCP email@example.com:/home/testdir/test/home/testdir/
Scp-r firstname.lastname@example.org:/mail/*./(Copy all files in the entire directory)
You need to enter the appropriate username and password
The SCP is a security copy of the file, based on SSH login.
There are 3 common ways to copy files between different Linux types:
The first is FTP, which is one of the Linux installation FTP Server, this can be another use of FTP client program to make copies of files.
The second approach is to use the Samba service, similar to the way Windows files are copied to operate, more concise and convenient.
The third is to use the SCP command for file copy.
The above content is this article about the SCP order detailed all content, hoped to have the help to everybody.