In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains the "DOS commonly used command collection", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "DOS commonly used command collection" bar!
I) establish a subdirectory by MD--
1. Function: create a new subdirectory
2. Type: internal command
3. Format: MD [drive letter:] [path name] < subdirectory name >
4. Instructions for use:
(1) "disk letter": specifies the letter of the disk drive to create a subdirectory. If omitted, it is the current drive.
(2) "path name": the parent directory name of the subdirectory to be created, which is created under the current directory by default.
Example: (1) create a subdirectory called FOX under the root directory of C disk; (2) create a USER subdirectory under the FOX subdirectory.
C:, > MD FOX (create a subdirectory FOX under the current drive C)
C:, > MD FOX, USER (create a USER subdirectory under the FOX subdirectory)
(2) CD-- changes the current directory
1. Function: display the current directory
2. Type: internal command
3. Format: CD [drive letter:] [path name] [subdirectory name]
4. Instructions for use:
(1) if the path and subdirectory name are omitted, the current directory is displayed.
(2) if you use the format "CD,", return to the root directory
(3) if "CD." The format is returned to the previous directory.
Example: (1) enter the user subdirectory; (2) return from the user subdirectory to the subdirectory; (3) return to the root directory.
C:, > CD FOX, USER (go to the user subdirectory under the Fox subdirectory)
C:, FOX, USER > CD. (return to the previous root directory)
C:, FOX > CD, (return to root directory)
C:, >
(3) RD-- delete subdirectory command
1. Function: the directory is deleted from the specified disk.
2. Type: internal command
3. Format: RD [drive letter:] [path name] [subdirectory name]
4. Instructions for use:
(1) the subdirectory must be empty before it is deleted, that is, you need to enter the subdirectory, delete the files under its subdirectory with DEL (the command to delete files), and then return to the directory above, and delete the directory itself with the RD command.
(2) the root directory and current directory cannot be deleted.
For example, delete the user subdirectory under the FOX subdirectory of disk C, as follows:
Step 1: delete the files in the user subdirectory first
C, > DEL C:, FOX, USER, *. *
The second step is to delete the user subdirectory.
C, > RD C:, FOX, USER
(4) DIR-- display disk directory command
1. Function: display the contents of the disk directory.
2. Type: internal command
3. Format: DIR [drive letter] [path] [/ P] [/ W]
4. Instructions for use: the use of / P; when there are too many directories to view and cannot be displayed on one screen, the screen will scroll up all the time, so it is not easy to read clearly. After adding the / P parameter, 23 lines of file information will be displayed on the screen at a time, then paused and prompted; Press any key to continue
The use of / W: add / W to show only the file name, omitting the file size and the date and time it was created. With parameters added, five file names can be displayed per line.
[path 2]... (set the search path for executable files)
PATH: (cancel all paths)
PATH: (show the currently set path)
(6) TREE-- display disk directory structure command
1. Function: displays all directory paths on the specified drive and all file names under these directories.
2. Type: external command
3. Format: TREE [drive letter:] [/ F] ["PRN]
4. Instructions for use:
(1) when the / F parameter is used, all directories and all files under the directory are displayed. When omitted, only the directory is displayed, not the files under the directory.
(2) when the > PRN parameter is selected, the listed directory and the file name in the directory are printed out.
(7) DELTREE-- command to delete the entire directory
1. Function: delete the entire directory and its subdirectories and files.
2. Type: external command
3. Format: DELTREE [drive letter:] < path name >
4. Instructions for use: this command can delete the directory and all files, subdirectories and lower-level subdirectories in one step, and regardless of whether the attribute of the file is hidden, system or read-only, as long as the file is under the deleted directory, DELTREE will treat it equally and delete it. Be careful when using it!
Fifth, disk operation commands
(1) FORMAT-- disk format command
1. Function: format the disk, divide tracks and sectors; at the same time, check out the defective tracks on the whole disk, mark the bad tracks; establish a directory area and file allocation table to make the disk ready to receive DOS.
2. Type: external command
3. Format: FORMAT < drive letter: > [/ S] [/ 4] [/ Q]
4. Instructions for use:
(1) the drive letter after the command cannot be defaulted. If the hard disk is formatted, it will be prompted as follows: WARNING:ALL DATA ON NON-- REMOVABLE DISK
DRIVE C:WILL BE LOST!
Proceed with Format (Y big N)?
Warning: all data on disk C will be lost. Are you sure you want to continue formatting? )
(2) if the floppy disk is formatted, it will be prompted as follows: Insert mew diskette for drive A
And press ENTER when ready...
Insert a new disk in drive An and press enter when you are ready.
(3) by selecting the [/ S] parameter, the DOS system files IO.SYS, MSDOS.SYS and COMMAND.COM will be copied to the disk so that the disk can be used as a DOS boot disk. If the / S parameter is not selected, the formatted disk can only read and write information, but cannot be used as a boot disk.
(4) choose the parameter [/ 4] to format the low density disk of 360KB in the high density floppy drive of 1.2MB.
(5) choose the [/ Q] parameter to format quickly. This parameter will not redivide the track appearance and sectors of the disk, but can only clear the disk root directory, file allocation table and boot sector into blank. Therefore, the formatting speed is faster.
(6) Select the [/ U] parameter to indicate unconditional formatting, that is, to destroy all data on the original disk. If you do not add / U, it will be safely formatted. At this time, a mirror file is established to save the original FAT table and root directory, and if necessary, you can use UNFORRMAT to restore the original data.
(2) UNFORMAT restore formatting command
1. Function: recover the disk that lost data after formatting misoperation.
2. Type: external command
3. Format: UNFORMAT < drive letter > [/ L] [/ U] [/ P] [/ TEST]
4. Instructions for use: for recovery of disks that will be formatted "non-destructively". When the deleted files or subdirectories under the root directory and the system sectors of the disk (including FAT, root directory, BOOT sector and hard disk partition table) are damaged, UNFORMAT can also be used to rescue.
(1) Select the / L parameter to list the found subdirectory name, file name, date of filial piety and other information, but will not really do the FORMAT work.
(2) Select the / P parameter to send the report displayed on the screen (including the information generated by the / L parameter) to the printer at the same time. The runtime screen displays: "Print out will be sent to LPT1"
(3) choose the / TEST parameter only to do the simulation test (TEST) and not to do the real writing action. Using this parameter, the screen displays: "Simulation only"
(4) choose the / U parameter not to use the data of MIRROR image file, and UNFORMAT directly according to the current situation of the disk.
(5) choose / PSRTN; to repair the hard disk partition table.
If you add one of / P, / L, / TEST after the drive letter, which is equivalent to using the / U parameter, UNFORMAT will "assume" that there is no MIRROR image file on the disk at this time.
Note: UNFORMAT can fully recover the disk just FORMAT, but if you write other data after FORMAT, UNFORMAT will not be able to save the data completely. UNFORMAT is not omnipotent, because the use of UNFORMAT will rebuild the FAT and the root directory, so it also has a high risk, improper operation may increase the loss, if only a few files or subdirectories are deleted by mistake, only need to use UNDELETE.
Thank you for your reading, the above is the content of "DOS commonly used command collection", after the study of this article, I believe you have a deeper understanding of the problem of DOS commonly used command collection, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.