『第 202 楼』:
使用 LLM 解释/回答一下
DOS的常用命令
(一)MD――建立子目录
1.功能:创建新的子目录
2.类型:内部命令
3.格式:MD〈子目录名〉
4.使用说明:
(1)“盘符”:指定要建立子目录的磁盘驱动器字母,若省略,则为当前驱动器;
(2)“路径名”:要建立的子目录的上级目录名,若缺省则建在当前目录下。
例:(1)在C盘的根目录下创建名为FOX的子目录;(2)在FOX子目录下再创建USER子目录。
C:、>MD FOX (在当前驱动器C盘下创建子目录FOX)
C:、>MD FOX 、USER (在FOX 子目录下再创建USER子目录)
(二)CD――改变当前目录
1.功能:显示当前目录
2.类型:内部命令
3.格式:CD
4.使用说明:
(1)如果省略路径和子目录名则显示当前目录;
(2)如采用“CD、”格式,则退回到根目录;
(3)如采用“CD.。”格式则退回到上一级目录。
例:(1)进入到USER子目录;(2)从USER子目录退回到子目录;(3)返回到根目录。
C:、>CD FOX 、USER(进入FOX子目录下的USER子目录)
C:、FOX、USER>CD.。 (退回上一级根目录)
C:、FOX>CD、 (返回到根目录)
C:、>
(三)RD――删除子目录命令
1.功能:从指定的磁盘删除了目录。
2.类型:内部命令
3.格式:RD
4.使用说明:
(1)子目录在删除前必须是空的,也就是说需要先进入该子目录,使用DEL(删除文件的命令)将其子目录
下的文件删空,然后再退回到上一级目录,用RD命令删除该了目录本身;
(2)不能删除根目录和当前目录。
例:要求把C盘FOX子目录下的USER子目录删除,操作如下:
第一步:先将USER子目录下的文件删空;
C、>DEL C:、FOX、USER、*。*
第二步,删除USER子目录。
C、>RD C:、FOX、USER
(四)DIR――显示磁盘目录命令
1.功能:显示磁盘目录的内容。
2.类型:内部命令
3.格式:DIR
4.
使用说明:/P的使用;当欲查看的目录太多,无法在一屏显示完屏幕会一直往上卷,不容易看清,加上/P参
数后,屏幕上会分面一次显示23行的文件信息,然后暂停,并提示;Press
any key to continue
/W的使用:加上/W只显示文件名,至于文件大小及建立的日期和时间则都省略。加上参数后,每行可以显示
五个文件名。
PATH――路径设置命令
1.功能:设备可执行文件的搜索路径,只对文件有效。
2.类型:内部命令
3.格式:PATH目录{,〈目录路径名2〉…}
4.使用说明:
(1)当运行一个可执行文件时,DOS会先在当前目录中搜索该文件,若找到则运行之;若找不到该文件,则
根据PATH命令所设置的路径,顺序逐条地到目录中搜索该文件;
(2)PATH命令中的路径,若有两条以上,各路径之间以一个分号“;”隔开;
(3)PATH命令有三种使用方法:
PATH…(设定可执行文件的搜索路径)
PATH:(取消所有路径)
PATH:(显示目前所设的路径)
(六)TREE――显示磁盘目录结构命令
1.功能:显示指定驱动器上所有目录路径和这些目录下的所有文件名。
2.类型:外部命令
3.格式:TREE
4.使用说明:
(1)使用/F参数时显示所有目录及目录下的所有文件,省略时,只显示目录,不显示目录下的文件;
(2)选用>PRN参数时,则把所列目录及目录中的文件名打印输出。
(七)DELTREE――删除整个目录命令
1.功能:将整个目录及其下属子目录和文件删除。
2.类型:外部命令
3.格式:DELTREE〈路径名〉
4.使用说明:该命令可以一步就将目录及其下的所有文件、子目录、更下层的子目录一并删除,而且不管
文件的属性为隐藏、系统或只读,只要该文件位于删除的目录之下,DELTREE都一视同仁,照删不误。使用时
务必小心!!!
刚找到的,,,希望大家喜欢,,,,谢谢!!!!!!!!!!
Common Commands in DOS
(I) MD -- Create Subdirectory
1. Function: Create a new subdirectory
2. Type: Internal command
3. Format: MD <subdirectory name>
4. Usage instructions:
(1) "Drive": Specify the disk drive letter where the subdirectory is to be created. If omitted, it is the current drive;
(2) "Pathname": The name of the upper-level directory of the subdirectory to be created. If omitted, it is created in the current directory.
Example: (1) Create a subdirectory named FOX under the root directory of drive C; (2) Create a USER subdirectory under the FOX subdirectory.
C:> MD FOX (Create subdirectory FOX under current drive C)
C:> MD FOX\USER (Create USER subdirectory under FOX subdirectory)
(II) CD -- Change Current Directory
1. Function: Display the current directory
2. Type: Internal command
3. Format: CD
4. Usage instructions:
(1) If the path and subdirectory name are omitted, the current directory is displayed;
(2) If the format "CD\" is used, it returns to the root directory;
(3) If the format "CD.." is used, it returns to the upper-level directory.
Example: (1) Enter the USER subdirectory; (2) Return from the USER subdirectory to the upper-level directory; (3) Return to the root directory.
C:> CD FOX\USER (Enter USER subdirectory under FOX subdirectory)
C:>FOX\USER> CD.. (Return to upper-level root directory)
C:>FOX> CD\ (Return to root directory)
C:>
(III) RD -- Delete Subdirectory Command
1. Function: Delete a directory from the specified disk.
2. Type: Internal command
3. Format: RD
4. Usage instructions:
(1) The subdirectory must be empty before deletion, that is, you need to enter the subdirectory first, use DEL (the command to delete files) to empty the files under the subdirectory, then return to the upper-level directory, and use the RD command to delete the subdirectory itself;
(2) The root directory and the current directory cannot be deleted.
Example: Requirement: Delete the USER subdirectory under the FOX subdirectory on drive C. The operation is as follows:
Step 1: First empty the files under the USER subdirectory;
C:> DEL C:\FOX\USER\*.*
Step 2: Delete the USER subdirectory.
C:> RD C:\FOX\USER
(IV) DIR -- Display Disk Directory Command
1. Function: Display the content of the disk directory.
2. Type: Internal command
3. Format: DIR
4. Usage instructions: Use of /P; When there are too many directories to view and they cannot be displayed completely on one screen, the screen will keep scrolling up, which is not easy to see. After adding the /P parameter, the file information of 23 lines will be displayed page by page on the screen, then paused, and prompt: Press any key to continue
Use of /W: Adding /W only displays the file names, and the file size, creation date and time are all omitted. After adding the parameter, five file names can be displayed per line.
PATH -- Path Setting Command
1. Function: Set the search path for executable files, only valid for files.
2. Type: Internal command
3. Format: PATH directory{<directory pathname2>...}
4. Usage instructions:
(1) When running an executable file, DOS will first search for the file in the current directory. If found, it will run it; if not found, it will search for the file in the directories set by the PATH command in sequence one by one;
(2) The paths in the PATH command, if there are two or more, are separated by a semicolon ";" between each path;
(3) The PATH command has three usage methods:
PATH... (Set the search path for executable files)
PATH: (Cancel all paths)
PATH: (Display the currently set path)
(VI) TREE -- Display Disk Directory Structure Command
1. Function: Display all directory paths on the specified drive and all file names under these directories.
2. Type: External command
3. Format: TREE
4. Usage instructions:
(1) When using the /F parameter, all directories and all files under the directories are displayed. When omitted, only directories are displayed, and files under the directories are not displayed;
(2) When using the >PRN parameter, the listed directories and file names in the directories are printed out.
(VII) DELTREE -- Delete Entire Directory Command
1. Function: Delete the entire directory and its subordinate subdirectories and files.
2. Type: External command
3. Format: DELTREE<pathname>
4. Usage instructions: This command can delete the directory and all files, subdirectories, and lower-level subdirectories under it in one step. Moreover, regardless of whether the file attributes are hidden, system or read-only, as long as the file is under the deleted directory, DELTREE will delete it without distinction. Be extremely careful when using it!!!
Just found it,,, hope everyone likes it,,,, thank you!!!!!!!!!!
|