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