Linux command: zip&unzip&scp&mtr

Source: Internet
Author: User

I want to transfer files between servers, use the SCP tool, and the zip tool is useful when the file is large or needs to transfer many files. Network analysis Tools The MTR is also commonly used.

Readers can look at the next man information for comparison.

1. Compress the files into soft.zip files

Zip–r Soft.zip apr-1.5.1.tar.gz cmake-2.8.12.2.tar.gz/app/backup/

2. SCP Tool Transfer file

Scp-p 2201 Soft.zip Test@10.10.1.2:/database/backup

RSA key fingerprint is 6c:0a:34:3c:d2:13:4d:ca:bf:d9:9a:8d:c7:6c:1a:4e.
Is you sure want to continue connecting (yes/no)? Y
Please type ' yes ' or ' no ': Yes

3. Login to 10.10.1.2 host to view files

4. Unzip the zip file to view the file details

Unzip Soft.zip

Or do not want to unzip, just want to see what the content: Unzip–v soft.zip

Or find that there are many subdirectories in the compressed file, I want to compress these files into the first directory: Unzip–j music.zip

5. View the Help information for MTR: mtr–h

-V: View the current version number;

-R: In the report mode, no-R will be displayed dynamically;

-C: Sets the number of packets sent per second, the default value is 10;

-S: Specifies the size of the ping packet;

-N: Equivalent to--no-dns does not parse DNS;

Sends 15 packets to the DNS server 202.106.0.20, does not do the DNS resolution, and displays in the form of a report:

Mtr-r-n-c 15 ***.***.***.***

Mtr:unable to get raw sockets. No permissions, set permissions, or use the root user.

Linux command: zip&unzip&scp&mtr

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.