Software testing study notes: dos command

dos command

Write code to achieve the purpose of the control system
1. win+r open the running window

2. Enter cmd or click OK, a black window will open, and you can control the system by writing code in it

3. Ipconfig/all and press Enter to
check the current computer network connection;
Ethernet connection Ethernet or local connection to find it, find the physical address (also called mac address) in the following value, and the
following string of numbers is the machine Is the identification code (unique)

4. Ping URL and press Enter to view the network connection status between the current computer and the target URL

5. Example of drive letter plus colon: f: switch drive letter

6. The name of the cd directory (name of the folder) into the specified folder

7. cd... Return to the upper level directory (folder)

8. cd/ returns to the root directory (the top directory is usually c, d, f)

9. md hehe creates a folder (directory)

10. To delete a folder (directory), rd hehe can only delete an empty directory; if you want to delete a directory with content, add a space /s Example: rd hehe /s prompt, enter y and press Enter, it will be deleted, enter n Press enter, don't delete

11. Example of del file name: del 1.txt

12. The name of the del folder (directory name) Example: del gaga
Note: If you write the name of the folder, you can only delete the files in the first level in the current folder, and the files in the sub-level will not be deleted; Will not delete the folder (directory)

13. Copy the file directory/file name you want to paste to the directory
Example: copy X:\hehe\1.txt X:gaga\heihei
Note: The file directory can be directly copied and pasted in the address bar of windows ( After win10 copy, directly in cmd ctrl+V; win7, 8 right click and select paste)

14. Move file directory/file name want to move and cut to that directory
Example: move X:\hehe\1.txt X:\gaga\heihei

15. Echo content text>File name
Example: echo and brother>2.txt

16. The code written before can be quickly typed up and down on the keyboard

17. ctrl+c shortcut key combination, exit the currently executed command (time enter, ctrl+c)

Guess you like

Origin blog.csdn.net/m0_51684972/article/details/112297249