Doscommand dos explanation-dos add and delete username-netsh-netstat

Source: Internet
Author: User
Tags net time net send

Net use & #92; & #92; IP & #92; IPC $ "/User:" "Create an empty IPC link; S4 U, O 'q (J J, W3 ~ /') M0 R
Net use & #92; & #92; IP & #92; IPC $ "password"/User: "User Name" create a non-empty IPC Link @ 9 y * I3 U4 F0 u ^ # F'h1 s
Net use h: build the best computer self-learning Forum % F, X & D * D's "~ -S + V/F: K/S
Net use h:
(O0 K) P + F/W Net use & #92; & #92; IP & #92; IPC $/del Delete IPC link I love Computer Technology Forum 7 B/Q. s \ 0 T3 Q "u8 F # d-r
. Net use H:/DEL: Delete the H ing from the ing peer to the local host that is H:
-H $ v "X & Q) K7 B/m' uwww.520diannao.com Net user username and password/Add create user! @ 1 R7 o "~ "N U0 {/X5 Q "d
Net user guest/active: yes to activate the Guest user
/R. H5 D # ^ "'/Z^ "B, E creates the best self-taught computer exchange forum Net user to view which users are there: www.520diannao.com; a2 M (r: W T
Net user account name view account attributes
2 @ (r: F3] # J Net localgroup administrators user name/Add add the "user" to the administrator so that it has administrator permissions. Note: Add s to the Administrator and use the plural
5 A7 y "A6 h; D3 E; D5 \ build the best self-taught computer exchange forum Net start to check which services are enabled
#? "W + n + p/S $ T5 N) e # H/W . Net start service name. (For example, Net start Telnet and Net start Schedule)
6 C # U-J2 D3 R. F:} 4 @W) U9 B creates the best computer self-learning Forum Net stop service name to stop a service
9 {3 D7 J5] 7 [8 E! P NET Time & #92; & #92; view the target IP address's time
5 L % m + L6 K4 x I love the Computer Technology Forum NET Time
*? 9 D2 n % o $ G' [, P5 F, d . Net view.
/Y. | * U1 {) R7 H4 [ Net view & #92; & #92; IP Address: view which shares are enabled in the Peer lan. 3 E \) E4 P7 x + q
Net config display system network settings
: W2 A) T6 V & K-V "L0 c creates the best self-taught computer exchange forum Net logoff disconnected 0 @, Z4 R; R: W3 R3 g/V + I2 P
. Net pause service name: suspend a service
-'0 O9 {9 L % ': Z! O; t Net send IP "Text Information" sends information to the recipient
6 q. f'e $ M7 C7 R3 T & X Net ver lan network connection type and information used to create the best computer self-learning Forum 2' (_ 9 B % I; U + V5 Z (D8 X: K & K1 Q
. NET Share to view locally enabled shares; u7]! G5 | ;@
NET Share IPC $ enable IPC $ share to create the best computer self-learning Forum 6 {'? $ C "H: A" W5 s) d
NET Share IPC $/del Delete IPC $ share I love Computer Technology Forum 6 j '}! W7 X: W7 Y2 V4 B! O
NET Share C $/del Delete C: Share 4 E + R: N % H4 ^ $ x ? 6g
Net user guest 12345 after logging in with the guest user, change the password to 123456 ^ 9] * _ * A2 Z, C # Y
Net Password Change System Login Password # C1} 2 C8 W, Q. ^ ;'
Netstat-A is usually used to check which ports are enabled. netstat-An + S5 A; [1 V1 F % K (} * I +}
Netstat-N is used to view the network connection of the port. netstat-an I love Computer Technology Forum 4 {* D + K8 v 'B-E7 | & L. S
Netstat-V view ongoing work ([(W. Y, x0 H. P7 C & Q
Netstat-P protocol name example: netstat-p tcq/IP to view the usage of a protocol (view the usage of TCP/IP protocol)
8 P4 y "x * W3 A/L Netstat-s view all protocol usage in use 9x0 J, P/J % G9 I % J
If one of the ports in nbtstat-a ip address ranges from 136 to 139, you can view the user name that the other party recently logged on to (the user name is before 03). Note: Parameter-A must be capitalized: p6 Q/F, F; D! P (U/J8 x
Tracert-parameter IP (or computer name) Tracking routing (packet), parameter: "-W number" is used to set the timeout interval.
, Q "I0 v. l7? 4 N-D7 A7 W Ping An IP address (or domain name) to send 32-byte data to the host. Parameter: "-l [space] data packet size"; "-N data transmission count "; "-T" indicates that the Ping is always performed.
/? :@} "U7 v.] * Z3 p * P Ping-T-l 65550 IP address death Ping (send a file larger than 64 KB and ping it until the ping ends)
. M) F8 {$ A: H8 Q3 S + ^ Ipconfig (winipcfg) is used to view the local IP address in Windows NT and XP (Windows 95 98). The "/all" parameter of ipconfig displays all configuration information www.520diannao.com) I % O4 O + u) K.
Tlist-T displays processes in the tree line list (this is an additional system tool, which is not installed by default and is in the support/tools folder of the installation directory) build the best computer self-learning Forum 9 [# x/v6 Q8 K1 L; |
After the kill-f process name is added with the-F parameter, a process is forcibly terminated. (This is an additional tool of the system. It is not installed by default. It is in the support/tools folder of the installation directory)
8 F (Q/u! V7 K, E8 L After the Del-F file name and the-F parameter are added, the read-only files can be deleted./AR,/AH,/As, And/AA respectively indicate the deletion of read-only, hidden, system, and archive files, /A-R,/a-h,/a-s,/A-A means to delete files except read-only, hidden, system, archive. For example, "del/AR *. *" means to delete all read-only files in the current directory, "del/A-S *. *" means to delete all files except system files in the current directory
. L5 U6 N "C0O9 | Del/S/Q directory or use: rmdir/S/Q directory/s to delete all subdirectories and files in the directory. At the same time, you can use the parameter/Q to cancel the deletion operation and then delete it directly. (The two commands serve the same purpose)
$ T9 I % C; R (G; E/L Move drive letter & #92; Path & #92; the file name to be moved stores the path of the mobile file & #92; move the file name after moving, use the/y parameter to cancel the prompt that the Mobile Directory has the same file and overwrite it directly.
"W! JL: B. H $ C: V "? FC one.txt two.txt> 3st.txt compares two files and outputs them to the 3st.txt file. ">" and ">" are redirection commands.
* F, P! Q *} e: create the best self-taught computer exchange forum At ID: Enable a registered scheduled task www.520diannao.com) _ (w # x L' {+ S2 P
At/delete: Stop all scheduled tasks. Use the/Yes parameter to stop 1 F + H * i8 without confirmation. | $ A4 L
At ID/delete: Stop a registered scheduled task www.520diannao. com0 Y5 S5 R %] "m P + h0 E U
At view all scheduled tasks
"X & U) g, l' I/e I love Computer Technology Forum At & #92; & #92; IP time Program Name (or a command)/R runs a program of the other party at a certain time and restarts the computer
& M "\, @-J & C7 t2 g! _U Finger username @ host check which users have logged on to www.520diannao. com9 J-h, H4 \ 2 O5 J + W: K1 H0} % Z
Telnet IP port: Remote and login server, default port: 23 U *?) ?, V + G6 m
Connecting an open IP address to an IP address (the command after telnet login) I love the Computer Technology Forum 6 G3 \ 5 R. W Q! R "F
Telnet directly type telnet on the local machine to enter the local telnet
-? /B 'F + O0? ({; Q2 y Copy Path & #92; file name 1 Path & #92; file name 2/y copy file 1 to the specified directory as file 2, use the parameter/y to cancel confirming that you want to rewrite an existing directory file.
6 B: U + x % Z + W. Y % O2 D/h Copy C: & # 921_srv.exe & #92; & #92; IP & #92; ADMIN $ copy local C: & # 921_srv.exe to the admin of the other party
: Z-A/Y5 ^ '| % V9 H7 [9 t I love Computer Technology Forum Cppy 1st.jpg/b4242st.txt/A 3st.jpg contains a new file. Note: the file header of 2st.txt must be empty in three rows. Parameter:/B indicates the binary file, And/A indicates the ascll file 6 R) {# s! L "a-e $ ^ (P
Copy &%92;&%92;ip&%92;admin=&%92;svv.exe C: & #92; or: Copy & #92; & #92; IP & #92; ADMIN $ & #92 ;*. * copy the srv.exe file (all files) shared by the peer administrator to the local C:
8 V9 C & \ 2 @ 0 ^ $ G6 J0 A3 L) Q, G I love the Computer Technology Forum Target address of the file or directory tree to be copied in xcopy
9 F5 H % [7 R9 B, lY TFTP-I's own IP address (this is used when the meat machine is used as the stepping stone) Get server.exe C: -I refers to binary transfer, which is used for transferring an EXE file. If-I is not added, it is transmitted in ASCII mode (Transfer text file mode) transfer to create the best computer self-learning Forum-}) N; ''I4 [7 M1 e $ R
After logging on to the TFTP-I peer IP put C: & # 92w.server.exe, upload the local C: & # 92w.server.exe to the host www.520diannao. com5 I %} + Q & H & O2 | 3 |. t. ~ O H
The ftp ip port is used to upload files to the server or perform file operations. The default port is 21. Bin refers to binary transfer (Executable File In). The default is ASCII format transfer (when a text file is used). I love Computer Technology Forum 3 C & L6 K6 K & C
Route print displays the IP route, which displays the network address network addres, subnet mask netmask, gateway address gateway addres, interface address; x0 U2 B0 E6 I /~
ARP is used to view and process ARP caches. ARP is used to resolve an IP address into a physical MAC address. ARP-A will show all information) y; s 'x/[# V & [. Z (E
Start program name or command/max or/min open a new window and maximize (minimize) run a program or command
) R/CE4 C1 X7 T * D4 J "[I love the Computer Technology Forum Mem view CPU usage: S; | + C; y3' $ K1 g
Attrib file name (directory name) to view the attributes of a file (directory)
) H4 B/h (] $ { Attrib file name-a-r-s-h or + A + R + S + H remove (ADD) the archive of a file, read-only, system, and hidden attribute; use + to add an attribute
: V8 U, g) q + E: J + H $ Dir: view the file. The parameter "/Q" indicates the user of the file and directory system./t: C indicates the file creation time./t: A indicates the last file access time./t: w last modification time;} 7 Y1 F8 C6 P (}/P7 B; | 4 u
Date/t and time/t use this parameter, that is, "date/T" and "Time/T", to display only the current date and time without entering the new date and time: G (B! E $ Y/x/y
Set specifies the environment variable name = the character to be assigned to the variable to set the environment variable
. A $ X7 L * n,] 9 D2 O7 E: T5 Z Set displays all current environment variables
0 r % QC9 G-H3 z5 n I love Computer Technology Forum Set P (or other characters) displays all environment variables starting with P (or other characters). I love the Computer Technology Forum 9 o * Q1 ?, E: K "V * E7 o
Pause pause the batch processing program and display: press any key to continue ....
(V: y9 O3 [5 I (U9 k'n $ E If you execute conditional processing in the batch processing program (for more information, see the if command and variable) www.520diannao.com 'f/h/K $' S; O: W
The Goto tag directs cmd.exe to the rows with labels in the batch processing program (the tag must be a separate row and headers with colons, for example, the ": Start" tag)
; @ # ^ 5 N0 M-J ;~, O & J2 '$ R Call Path & #92; the batch processing file name calls another batch processing program from the batch processing program (for more information, see call /?)
. A $ N; R/V8 P, _ 0 R1 K $ R For execution of a specific command on each file in a group of files (for more information, see for command and variable) create the best computer self-learning Forum * z7 o-} + {4 W # C9 \, R: K9 ^
Echo ON or OFF enables or disables echo. The current echo settings are displayed only when ECHO is used without parameters.
7x0 \ 'x +}. u The echo information is displayed on the screen. 2.
Echo information> pass.txt: Save "information" to the pass.txt File
.?, S) m2 y) x-x + I9 bwww.520diannao.com Findstr "hello" aa.txt search for the string hello in the aa.txt file. I love the Computer Technology Forum 0 z! W (o8 m + G3 C/F "_; s
Find file name search for a file to create the best computer self-learning Forum 0 _ 'l3 u! Y # _-T. M8 m
Title name change the title name of the CMD window
5 _ * VS & E9 Q3 U, K7 ~ 8 V4 H3 owww.520diannao.com Set the color value to the foreground and background colors of the CMD console; 0 = Black, 1 = blue, 2 = green, 3 = light green, 4 = red, 5 = purple, 6 = yellow, 7 = white, 8 = gray, 9 = light blue, A = light green, B = light green, c = light red, D = light purple, E = light yellow, F = light white
; B # ^ 0 \ 3 I: _ 1 /@ The prompt name is changed to the command prompt displayed by cmd.exe (Change C: & #92;, D: & #92; To entsky & #92 ;)
5 O (E: Z9 N: Z1 Q: T % F $ G & \ I love the Computer Technology Forum Print file name print text file
4 B1 O ;? & T9 K4 Y2 {I love the Computer Technology Forum In the DOS window, the server displays the version information www.520diannao.com/I5 J2 L4 ~ (X: W # C * w
In the winver pop-up window, the version information (memory size, system version, patch version, and computer name) is displayed)
7? 7 L3 v .~ 7 V5 ~ Build the best computer self-learning Forum Format drive letter/Fs: Format disk, type: fat, FAT32, NTFS, for example: Format D:/Fs: NTFS; | 1 W5 n % G % {,~
MD directory name create directory
+ Y, M7 I, d' p )? 5 q I love the Computer Technology Forum Replace the directory of the source file to be replaced
$ F. W4 v-e, n' ^ 3 ~ Rename original file name New File Name
# M + d (@ 6 x) H-V % [; P4 C. J) J $ xwww.520diannao.com Tree displays the directory in a tree structure, and uses the-F parameter to list the file names in the first folder.
Z'1' "T4] 8 G5 Q' N: YD Type file name display text file content
, A + N ;? -R0 B/y More file names display output files on screen. I love the Computer Technology Forum 7 u7 s! G # E (u
Doskey command to be locked = character
1 t) BW * B8 K # L + Y to build the best computer self-learning Forum Doskey UNLOCK command = Lock Command provided for DOS (edit command line, re-call Win2k command, and create macro ). For example, run the following command to lock the Dir: doskey dir = entsky (doskey dir = dir cannot be used); unlock: doskey dir =
%? : O-|M & B7 d Taskmgr call up the Task Manager
/_ 0 C, S8 M1 L3 Q to build the best computer self-learning Forum Chkdsk/f d: Check disk D and display status report; add parameter/F and fix disk errors. I love Computer Technology Forum 0 A-Y4 S/_ $ u
Tlntadmn telnt service admn, type tlntadmn and select 3, then select 8, you can change the default port 23 of the Telnet service to create the best computer self-learning forum for any other port! | 1 H "p" y7 W "|-H
Exit to exit the cmd.exe program. Currently, the parameter/B is used to exit the current batch processing script, not the cmd.exe www.520diannao.com # R-A6 J "Y; C/S U.
Path & #92; the file name of the executable file sets a path for the executable file.
1 _[! Z! X2? "E1 L. N CMD starts a Windows 2 K Command explanation window. Parameters:/Eff,/EN, and enable command extension. For more information, see CMD /?
* '9 B # Y $ t' L # T9 O: C, y0 Z Regedit/s registry file name import registry; parameter/S refers to quiet mode import, no prompt; I love Computer Technology Forum) O9 O; H %? % E 'l-S/I $ M, ^
Regedit/e registry file name export Registry: N3 Z8 L3 R: X, Q7]
Cacls file name parameters display or modify the file access control list (ACL)-for NTFs format. Parameter:/d User name: Set to deny access to a user;/P User name: perm to replace the access permission of the specified user;/g User name: perm to grant the access permission to the specified user; perm can be: N none, r read, W write, c Change (write), f full control; example: cacls D: & # 921_test.txt/d pub set D: & # 92w.test.txt deny pub user access. Create the best computer self-learning Forum 4] $ D6 H0 A5 '& S8 D6 | + F + ^! D
Cacls file name view object access user permission List 8 K3 ~ '_ * F * H' y
The REM text content is annotated in the batch processing file.) Z: Z "L; L2 T8 W0 \/u/g + Z # U0 R
Netsh to view or change the local network configuration
* A4 ^ $ x * Z $ M7 _ (L; ['ewww.520diannao.com IIS service command: create the best computer self-learning Forum/K * I. J: f' @ + S9 o
Iisreset/reboot restart Win2k computer (but a message is prompted that the system will restart)
5 C: O # P & I: Q ;~ Iisreset/start or stop all Internet services
7 K9 R5}/s; Q9 v. d. I love the computer technology forum. Iisreset/restart stop and restart all Internet services
) P + ^ 6 [0 F % ') x2 I Iisreset/status displays all Internet service statuses 8 W3 C (X # M0 n
Iisreset/enable or disable enable/Disable Internet services on the local system restart I love Computer Technology Forum 5 | 5 r * Q & B ']! G7 B
Iisreset/rebootonerror when the Internet service is started, stopped, or restarted, the system restarts if an error occurs.
% Y! B0 Q! X "{I love the Computer Technology Forum Iisreset/noforce if the Internet service cannot be stopped, the internet service will not be forcibly terminated to create the best computer self-learning Forum's/d % H (] 'e4g (Y ('0 R2 K
Iisreset/timeout Val does not stop the internet service when it reaches the time (in seconds). If the/rebootonerror parameter is specified, the computer restarts. The default value is restart for 20 seconds, stop for 60 seconds, and restart for 0 seconds.
8 C) I. D * V, L4 M. {7 F6 J1 V5 d $ {www.520diannao.com FTP command: (detailed description later) 4 I2 Z; D; C & n
The FTP command line format is:
2? 4 h-f * S2 ^ 4') r; J1 x + t I love the Computer Technology Forum FTP-v-d-I-n-g [host name]-V displays all the response information of the remote server. :}%] 2 I5 V # i7 Q "l! N
-D use the debugging method .; U # H: u7 K $ U/W # F4 E7 y! H .?
-N restrict FTP automatic logon, that is, the. netrc file is not used.
0 E (C2 I # G % R0 y) y^ I love the Computer Technology Forum -G cancels the global file name.
5 C, A9 T: T) h; s, | Help [command] or? [Command] view command instructions
. \ 1 [4 ~ (? % Y0 F3 M7 E Bye or quit terminates the FTP process on the host and exits FTP management mode.;] 7 _-B9 W + L5 B8 W5 S3 U % m
PWD: list the current remote host directory www.520diannao.com, B) I 'q + '1}: I
Put or send local file name [file name uploaded to the host] transfers a local file to the remote host
5 V "H-e" CC )@ Get or Recv [remote host file name] [download to local file name] transfer from remote host to local host to create the best computer self-learning Forum & {6 W3 ^; ^, l, W2 {
Mget [Remote-files] receives a batch of files from the remote host to the local host # U0 Q, Q # J! I! U % T * U/m
Mput local-files transfers a batch of files from the local host to the remote host
. Y; E6 J; G2 d) '0 c) P # RQ'g creates the best self-taught computer exchange forum DIR or ls [Remote-Directory] [local-file] to list files in the directory of the current remote host. If a local file exists, write the result to the local file.
(L3 I (R % A $ M, [: O7 A * | ASCII settings transfer files in ASCII mode (default)
-P2 N & XW % '(owww.520diannao.com Bin or image sets File Transfer in binary mode
"Q % B8] (W8 ~ (YI: [% F1 |\ Www.520diannao.com Bell sends an alarm every time a file is transferred.
$ U & J4 C % [8 d Cdup returns the upper-level directory. V % Z' E: V7 d
Close interrupts the FTP session with the remote server (corresponds to open)
, P) M/G (Y, O (T9 u Open host [port] To establish a specified FTP server connection, you can specify the connection port) F, C, O0 K/y
Delete Delete files from remote hosts I love Computer Technology Forum 'c9 e $ K0 @; @ 4 X 'J
Mdelete [Remote-files] delete a batch of Files % H. G7 V1 F! W G # I9 L
Mkdir directory-Name: create a directory in the remote host
7 P4 B4 D6 O5 V1 I build the best computer self-learning Forum RENAME [from] [to] Change the file name in the remote host. I love the Computer Technology Forum 4 Z "I % W; H-f * |; r-n8 ^ 7 I
Rmdir directory-Name: Delete the directory 3 D7 ~ from the remote host ~ 0 G9 A5 R/o
Status shows the current FTP status to create the best computer self-learning Forum 2 B $ ? 5 {5}
System displays the remote host system type
! ] # K9 J6 g) L & V + z/S7 uwww.520diannao.com User user-name [Password] [account] log on to the remote host with another user name
7 Z, s #] "S1 R: l0 L $ ywww.520diannao.com Open host [port] re-establishes a new connection
2 F "p * U. R # Z (P Prompt interaction prompt Mode
5 t-u.}; U4 \ 8 L Macdef macro commands
# W: I * E)} % [ The LCD changes the working directory of the current local host. If it is set to default, it is transferred to the Home Directory of the current user.
% | 5 T3 ^ + C-l9}; D3 V/d Chmod changes file permissions on remote hosts. I love Computer Technology Forum % J, _ "s; W, V0 L/E
When the case is on, use the mget command to copy the file name to the local machine, convert all to lowercase letters
"R # I2 tT2 ^ ([1 I CD remote-Dir: Enter the remote host directory
J, M & I % K % L & K4 ~ Cdup: Enter the parent directory of the remote host directory. I love the computer technology forum. V! A % P)], y0 Q
! Execute the interactive shell on the local machine and exit to return to the FTP environment, such! Ls *. Zip

Doscommand dos explanation-dos add and delete username-netsh-netstat

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.