[Switch] How to upload local files to linux

The article is reprinted from: https://zhidao.baidu.com/question/1605311824649821827.html Thanks.
The difference between SecureCRT and SshClient is that SecureCRT does not have a graphical file transfer tool, but it does not affect it. If it is implemented with commands, it will be much more convenient and faster. 
The first way: To
upload a file, just enter the command "rz" in the shell terminal emulator, you can select the file on the local disk from the pop-up dialog box , and use Zmodem to upload it to the current path of the server.
To download a file, simply enter the command "sz filename" in the shell terminal emulator, and then use Zmodem to download the file to a local directory.
Through "File Transfer", you can modify the default path downloaded to the local. Set the default directory: options-->session options-->file transfer.
The second way: use sftp
securecrt to press ALT+P to open a new session for ftp operation.
Enter the :help command to display all the commands provided by the FTP
pwd: Query the directory where the Linux host is located (that is, the remote host directory)
lpwd: Query the local directory (generally refers to the directory where Windows uploads files: we can check the "Options" drop-down box by viewing "Session Options", as shown in Figure 2: We know that the local upload directory is: D:/ My Documents )
ls: Query which files are in the directory where the current linux host is connected
lls: Query which files are in the current local upload directory
lcd: Change The path to the local upload directory
cd: Change the remote upload directory
get: download the file in the remote directory to the local directory
put: upload the file in the local directory to the remote host (linux)

quit: disconnect the FTP connection

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324776172&siteId=291194637