Linux Common commands dig SCP

Source: Internet
Author: User

Dig

Dig [option] FQDN [@server]

@server: If you do not use/etc/resolv.conf as the DNS query, you can fill in the other IP

Options: A number of relevant parameters, mainly +trace,-t type and-X are the most commonly used

+trace: It's from. Start tracking and talk in 19.1.2! Look Back!

-T type: The data queried mainly include MX, NS, SOA and other types

-x: Query anti-solution information, very important items!

1 querying centos.daphne.com with default values

650) this.width=650; "title=" 123[7] "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" 123[7] "src=" http://img1.51cto.com/attachment/201405/24/158322_ 1400891027i4ic.jpg "width=" 910 "height=" 525 "/>

2 querying Daphne.com's SOA record

650) this.width=650; "title=" 123[9] "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" 123[9] "src=" http://img1.51cto.com/attachment/201405/24/158322_ 1400891030mjiq.jpg "width=" 910 "height=" 563 "/>

3 Querying the 192.168.200.129 Records

650) this.width=650; "title=" 123[11] "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" 123[11] "src=" http://img1.51cto.com/attachment/201405/24/158322_ 1400891032usqo.jpg "width=" 910 "height=" 563 "/>

Scp

SCP [Optional parameters] File_source File_target

Copy from local to remote

SCP Local_file [Email Protected]_ip:remote_folder

[Email Protected]_ip:remote_file

SCP Local_file Remote_ip:remote_folder

SCP Local_file Remote_ip:remote_file

1th, 2 Specifies the user name, the command needs to enter the password after execution, the 1th only specifies the remote directory, the file name is unchanged, 2nd specified the file name

3rd, 4 does not specify a user name, command execution after the need to enter the user name, password

scp/etc/inittab [Email Protected]:/root

scp/etc/inittab [Email Protected]:/root/inittab.bak

Copy from remote to local

Before and after 2 parameter Exchange order can be

Option

-R Copy Directory

-V Show Progress

-P Specify port

Note whether the remote user has permission to read the appropriate files for the remote server

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.