转自:宝鸡IT技术网
http://www.sunenze.com/enzebbs/dispbbs.asp?boardID=4&ID=36&page=2
1、目录概述及分类
在DOS操作系统当中,目录是用于存放文件的索引,以便更为方便的找寻所需要文件或命令。目录可以分为以下几类:
根 目 录:对于一块硬盘而言,它可以有一个,二个,三个甚至更多的分区,但每一个分区有且只有一个一个根目录,即“\”。如C:\、D:\均代表C盘的根目录和D盘的根目录。
说 明:在根目录下,是可以建立许多子目录,而在这些子目录下面,我们依然可以建立下一层的目录。子目录与根目录之间依然用“\”来表示。
当前目录:所谓的当前目录,即为当前正在工作的目录,可以用CD命令来查看自己当前所工作的目录。
2、 路径概述及分类
路 径:由目录到达目录或由目录到达文件的一条路线。分为以下几类:
绝对路径:由根目录到文件的一条路线。
例 如:d: \abc\bdc\x.txt即是由D盘根目录到达x.txt文件的一条路线。
相对路径:由当前目录到达文件或目录的路线。
例 如:C:\XYZ>DIR d: \abc\bdc\x.txt则表示在C:\XYZ目录当中查看
d: \abc\bdc\x.txt文件。
3、目录操作命令
MD――建立目录 格式:MD 路径+目录名
CD――进入目录 格式:CD 路径+目录名
CD••――退出一层目录
CD\――退回到根目录
RD\――删除空白目录
1、目录概述及分类
在DOS操作系统当中,目录是用于存放文件的索引,以便更为方便的找寻所需要文件或命令。目录可以分为以下几类:
根 目 录:对于一块硬盘而言,它可以有一个,二个,三个甚至更多的分区,但每一个分区有且只有一个一个根目录,即“\”。如C:\、D:\均代表C盘的根目录和D盘的根目录。
说 明:在根目录下,是可以建立许多子目录,而在这些子目录下面,我们依然可以建立下一层的目录。子目录与根目录之间依然用“\”来表示。
当前目录:所谓的当前目录,即为当前正在工作的目录,可以用CD命令来查看自己当前所工作的目录。
2、 路径概述及分类
路 径:由目录到达目录或由目录到达文件的一条路线。分为以下几类:
绝对路径:由根目录到文件的一条路线。
例 如:d: \abc\bdc\x.txt即是由D盘根目录到达x.txt文件的一条路线。
相对路径:由当前目录到达文件或目录的路线。
例 如:C:\XYZ>DIR d: \abc\bdc\x.txt则表示在C:\XYZ目录当中查看
d: \abc\bdc\x.txt文件。
3、目录操作命令
MD――建立目录 格式:MD 路径+目录名
CD――进入目录 格式:CD 路径+目录名
CD••――退出一层目录
CD\――退回到根目录
RD\――删除空白目录
From: Baoji IT Technology Network
http://www.sunenze.com/enzebbs/dispbbs.asp?boardID=4&ID=36&page=2
1. Directory Overview and Classification
In the DOS operating system, directories are indexes for storing files, facilitating the more convenient search for the required files or commands. Directories can be classified into the following types:
Root Directory: For a hard disk, it can have one, two, three, or even more partitions, but each partition has exactly one root directory, namely "\". For example, C:\ and D:\ represent the root directory of drive C and the root directory of drive D respectively.
Note: Many subdirectories can be created under the root directory, and we can still create the next - level directory under these subdirectories. The backslash "\" is still used to represent the relationship between subdirectories and the root directory.
Current Directory: The so - called current directory is the directory in which we are currently working. We can use the CD command to check the current working directory.
2. Path Overview and Classification
Path: A route from a directory to a directory or from a directory to a file. It is classified into the following types:
Absolute Path: A route from the root directory to a file.
For example: d: \abc\bdc\x.txt is a route from the root directory of drive D to the x.txt file.
Relative Path: A route from the current directory to a file or a directory.
For example: C:\XYZ>DIR d: \abc\bdc\x.txt means to view the d: \abc\bdc\x.txt file in the C:\XYZ directory.
3. Directory Operation Commands
MD - Create Directory Format: MD path + directory name
CD - Enter Directory Format: CD path + directory name
CD.. - Exit one level of directory
CD\ - Return to the root directory
RD\ - Delete an empty directory