The biggest difference between DOS and Windows lies in the doscommand operation. Therefore, you need to remember a large number of commands and their format usage methods. doscommands include internal commands and external commands. The COMMAND is loaded and resident memory with the COMMAND. COM started each time, while the external COMMAND is a separate executable file. Remember that internal commands can enable Use,The external command must ensure that the command file is in the current directory or the path has been loaded in the Autoexec. bat file. E: Enter the Elastic Block Storage (edisk) Dir (directory): view all directories in the current folder
Cd (change directory): where to go
Cd... is to return to the upper menu
Cd \ directly returns to the current root directory
Cd jdk * enters the jdk directory, and * indicates all the subsequent content. If multiple files exist at the same time, the first file is entered.
Mk (make directory): create a directory
Rd (remove directory): delete a directory (folder)
Rd command: delete a folder. If the folder is not empty, you must first Delete the content in the folder to delete the folder and delete it from the inside out.
Del (delete): delete a file (only files can be deleted, but folders cannot be deleted). To delete all files in a directory, del! * Wildcard Exit Search for all commands: help Find the usage of a specific command: help Command for example: help cd
Notepad open notepad Cls clear screen Move path \ file name: move a file (that is, cut + copy) to another place Format x:X indicates the drive letter. Format a partition. Type text file name: displays the type of the text file.
Old ren file name New File Name: Change the file name Ping the Host ip address or name
We recommend using net /? Obtain the help information. There are many parameters. Netstat HOST: view the current TCP/IP connection status of the host, such as the port status.
telnet Character-based remote logon program is a remote logon program that is extremely popular among network personnel. Common internal commands DOS Internal commands are the basis for DOS operations. The following describes some common DOS internal commands. 1. DIR Description: displays information about all files or directories in a specified path. Format: DIR [drive letter:] [path] [file name] [parameter] Parameters: /W: display on the wide screen. Five file names are displayed in a row without the modification time, file size, and other information; /P: displays information by page. You can use it to display information by page when the screen cannot be fully displayed; /A: displays files with special attributes; /S: displays all files in the current directory and Its subdirectories. Example: DIR/P The files in the current directory are displayed on the split screen. There is a "Press any key to continue..." prompt at the end of the current screen, indicating to Press any key to continue. 2. CD Description: Enter the specified directory. Format: CD [path] Example: CD DOS The CD command can only enter the directory in the current drive letter, where "CD" is returned to the root directory, and "CD..." is returned to the previous directory. 3. MD Meaning: create a directory Format: MD [drive letter] [path] Example: MD TEMP Creates a directory named TEMP under the current drive letter. 4. RD Meaning: delete a directory Format: RD [drive letter] [path] Example: RD TEMP Delete the TEMP directory in the current path. Note that this command can only delete empty directories. 5. COPY Meaning: copy an object Format: COPY [Source directory or file] [destination directory or file] Example 1: copy c: *. com d: ", which means to COPY all files with the extension COM under the root directory of drive C to the root directory of drive D. Example 2: copy c: autoexec. bat C: autoexec. bak Copy the autoexec. bat file to a file with the BAK extension. Enter the DIR command to find this change. 6. DEL Meaning: delete an object Format: DEL [drive letter] [path] [file name] [parameter] Example: del c: *. BAK/P Delete all files with the extension of BAK in the current directory. The parameter/P indicates that the user can display the deletion query for each file when deleting multiple files. 7. SYS Meaning: Pass the system file command. Format: SYS [source drive letter] [destination drive letter] Example: sys c:: This command is used to transfer the disk A to the system. After the transfer is successful, disk A will become the system boot disk. Common External commands DOS External commands are some applications. These external commands exist in the form of files. DOS External commands in Windows are stored in the Command in the Windows home directory. Directory. The following describes several common DOS External commands. 1. EDIT Meaning: simple editing software can be used to edit some programs and batch files. Format: EDIT [drive letter] [file name] Example: edit c: Autoexec. bat Enter this command to open the editor. After entering the File content in the editing status, press Alt + F to activate the File menu and press the downward arrow to Exit. The system prompts whether to save To save the content, enter Y or press Enter. 2. FORMAT Meaning: the formatting command can be used to format a floppy disk and a hard disk. FORMAT: FORMAT [drive letter] [parameter] Example: format a:/S/Q This command is used to format disk A. The parameter/Q is used to quickly format disk A. The/S parameter is used to copy the system boot file to the disk after formatting. In this way, the software can be used as the dossystem boot disk. . During formatting, the screen displays the percentage of Completed Items. After formatting, you will be prompted to name the disk, and the total disk space and available space will be reported. 3. XCOPY Meaning: Copy command Format: XCOPY [Source Path] [Source directory/file name] [destination directory/file name] [parameter] Example: xcopy c: abc d:/s After executing this command, all the files in the C: ABC directory and Its Directory will be copied to the root directory of drive D. XCOPY is an enhanced COPY command, which can be used to COPY multiple subdirectories. The most common parameter is/S. It can copy all subdirectories in a directory. 4. DELTREE Meaning: delete a directory tree Format: DELTREE [drive letter] [path] Example: DELTREE ARE Delete the ARE sub-directories in the current path. After execution, the system prompts whether to confirm the deletion. Press Y to delete the sub-directories. |