Directory replication under Linux: remote server, Local
SCP -r/home/shaoxiaohu/test1
Test1 is the source directory, Test2 is the target directory, [email protected] is the user name and IP address of the remote server.
Directory replication under Linux: Remote Server--native
SCP- R [email protected]:/home/test2/home/shaoxiaohu/test1
[Email protected] is the user name and IP address of the remote server, test1 is the source directory, Test2 is the target directory.
Note: If the port number changes, you need to enter the:-P port number after SCP (note that the command in SSH is lowercase with-p)
1, need to upload or download, need to use RZ and sz command. If you do not have these two command tools on Linux, you will need to install them first. Can be installed using Yum. Run the command yum install lrzsz
.
2, after the installation is complete, you can use the RZ command to upload local files to the Linux platform. Running the RZ command will pop up a dialog box to select the file.
3. Select the folder where you want to upload the file, and then click File. Then click the Add button, and the file you want to upload will appear in the "Sent Files" box. Click the OK button to complete the upload.
4. If you need to download the files on Linux, use the SZ command. SZ plus file full path, for example: sz install.log
. This will download to a local default folder.
5, when using the RZ upload, the selection box will be opened in advance in a default directory. When using SZ download, it is also downloaded to a default directory. This default directory can be set.
6, need to set the upload and download the default directory, click on the securecrt menu bar option = "Session options." Open the Session Options dialog box and click Terminal = "X/y/zmodem in category."
7, in the dialog box to the right of the set directory, this is the upload and download the default directory. Once you have modified the desired directory, click OK.
How to upload a download folder under Linux