One linux Command every day (26): Use SecureCRT to upload and download files

Source: Internet
Author: User
Tags overview example touch command


A linux Command (26) every day: Use SecureCRT to upload and download files. Link: a linux Command (1) every day: ls command (2): cd command http://www.bkjia.com/ OS /210210/163050.html#a linuxcommand (3) every day ): pwd command Export (4): mkdir command http://www.bkjia.com/ OS /201210/1620.3.html#a linuxcommand every day (5): rm command Export (6): rmdir command http://www.bkjia.com/ OS /2 01210/164017. html; one linux Command every day (7): mv command running (8): cp command http://www.bkjia.com/ OS /201210/163164.html#a linuxcommand every day (9): touch command running (10): cat command running (11 ): nl command http://www.bkjia.com/ OS /201211/165990.htmla linuxcommand every day (12): more command http://www.bkjia.com/ OS /201211/165994.htmlevery day Linux Command (13): less command running (14): head command http://www.bkjia.com/ OS /201211/166191.htmllinuxcommand (15) every day: tail command running (16): which command running (17 ): whereis command http://www.bkjia.com/ OS /201211/168893.htmla linuxcommand every day (18): locate command http://www.bkjia.com/ OS /201211/168895.htmla linuxcommand every day (1 9): find command overview example (20): find command exechttp: // www.bkjia.com/ OS /201211/168901.htmllinuxcommand every day (21): find command xargshttp: // timeout (22 ): detailed description of the parameters of the find command http://www.bkjia.com/ OS /201211/168912.htmla linuxcommand every day (23): Linux directory structure hour (24): Linux file type and extension http://www.bkjia.com/ OS /201211/170431. Day a linux Command (25): linux File properties detailed http://www.bkjia.com/ OS /201211/170434.html with SSH to manage linux Server often need remote and local interaction between files. using the built-in upload/download function of SecureCRT is undoubtedly the most convenient. The file transfer protocols under SecureCRT include ASCII, Xmodem, and Zmodem. File Transfer Protocol: www.2cto.com file transfer is the main form of data exchange. To ensure correct identification and transmission of files during file transfer, we need to establish a unified transfer protocol between the two computers. This Protocol includes File identification, transfer start and end times, and error judgment and correction. Common transfer protocols include the following: ASCII: the fastest transfer protocol, but only text files can be transmitted. Xmodem: this old transmission protocol is slow, but the CRC error detection method can achieve a Transmission Accuracy of up to 99.6%. Ymodem: This is an improved version of Xmodem. It uses a 1024-bit segment for transmission, which is faster than Xmodem. Zmodem: Zmodem uses a streaming transmission mode, which delivers faster transmission speeds, in addition, it can automatically change the partition size and resumable data transfer, and quickly detect errors. This is currently the most popular file transfer protocol. In addition to the above protocols, there are also protocols such as Imodem, Jmodem, Bimodem, Kermit, and Lynx. Since most vendors do not support these protocols, I will skip them here. SecureCRT can use the zmodem protocol in linux to quickly transfer files, which is very convenient to use. step 1. before using SecureCRT to upload and download, you need to install lrzsz: 1 on the server, download the lrzsz-0.12.20.tar.gzhttp from the following address: // export zxvf lrzsz-0.12.20.tar.gz4, enter the directory cd lrzsz-0.12.205 ,. /configure -- prefix =/usr/local/lrzsz6, make7, make install8, create soft link # cd/usr/bin # ln-s/usr/local/lrzsz/bin/lrz rz # ln-s/usr/local/lrzsz/bin/lsz Sz9. Test Run rz. The SecureCRT upload window is displayed. Use SecureCRT to upload and download files. 2. Set the default directory for SecureCRT upload and download. You can set the directory for upload and download in the right directory under options> session options> Terminal-> Xmodem/Zmodem.
III. use Zmodem to upload files from the client to the linux server. log on to the linux terminal using SecureCRT. 2. select the path of the file to be uploaded, and enter the rz command in the directory. SecureCRT will pop up the file selection dialog box. Find the file to be uploaded in the search range, and press the Add button. Then OK, you can upload the file to linux. Alternatively, the file selection dialog box is displayed in Transfer-> Zmodem Upoad list. After selecting the file, click Add. Then the OK window is automatically closed. In linux, select the directory for storing files and enter the rz command. Liunx uploads the file to this directory. 4. you can use Zmodem to download files to the client: sz filenamezmodem. the downloaded files are stored in the default download directory you set. rz, sz is a command line tool for ZModem file transmission in Linux/Unix and Windows. windows must support the telnet/ssh client of ZModem, secureCRT can be used to log on to the Unix/Linux host (telnet or ssh) O Run Command rz, that is, to receive files. SecureCRT will pop up the file selection dialog box. After selecting the files, close the dialog box, the file will be uploaded to the current directory O run command sz file1 file2 is to send the file to windows (the saved directory can be configured) more convenient than the ftp command, and the server no longer needs to open the FTP service

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.