📄 cd.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://www.hongen.com/pc/newer/os/dos/dos0202.htm -->
<HTML><HEAD><TITLE>洪恩在线 - DOS</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="cd.files/home.css" rel=stylesheet><LINK href="cd.files/tools.css"
rel=stylesheet>
<META
content=电脑,乐园,交互,教程,操作系统,DOS,命令,dir,cd,md,rd,copy,del,ren,type,format,diskcopy,deltree,mem,chkdsk,sys,path,edit
name=keywords>
<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<BODY text=black bgColor=white leftMargin=0 topMargin=10 marginheight="10"
marginwidth="0"><!--顶部开始-->
<SCRIPT language=Javascript src="cd.files/head.js"></SCRIPT>
<!--顶部结束-->
<TABLE height=20 cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD class=p1 align=left bgColor=#e8e8e8 height=19><IMG height=8
src="cd.files/blank.gif" width=12><FONT color=#ff9966>当前位置</FONT>:<A
class=under href="http://www.hongen.com/default.htm">洪恩在线</A> -> <A
class=under href="http://www.hongen.com/pc/index.htm">电脑乐园</A> ->
DOS</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD height=15></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD class=p1 style="COLOR: blue" vAlign=top align=left width=145
bgColor=#e8e8e8><IMG height=10 src="cd.files/blank.gif" width=1
align=center><BR>
<TABLE borderColor=#f8ac0e height=20 cellSpacing=0 cellPadding=0 width=128
align=left border=0>
<TBODY>
<TR vAlign=center bgColor=#000099>
<TD class=p2 align=middle width=115><B><FONT
color=#ffffff>DOS</FONT></B></TD>
<TD width=13 bgColor=#e8e8e8 height=20><IMG height=20
src="cd.files/title_00.gif" width=13></TD></TR></TBODY></TABLE>
<P style="LINE-HEIGHT: 17pt" align=left> </P>
<P style="LINE-HEIGHT: 17pt"> 一 <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0101.htm">DOS概述及入门</A></SPAN><BR> 二
<SPAN class=p1>DOS的常用命令</SPAN><BR> ※ <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0201.htm">dir</A></SPAN><BR> ※
<SPAN class=p1>cd</SPAN><BR> ※ <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0203.htm">md和rd</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0204.htm">copy</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0205.htm">del</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0206.htm">ren和type</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0207.htm">format</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0208.htm">diskcopy</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0209.htm">deltree和mem</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0210.htm">chkdsk</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0211.htm">sys</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0212.htm">path</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0213.htm">edit</A></SPAN><BR> 三
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0301.htm">DOS命令集锦</A></SPAN><BR> 四
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0401.htm">使用批处理文件</A></SPAN><BR> 五
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0501.htm">如何进行系统配置</A></SPAN><BR> 六
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0601.htm">出错提示与对策</A></SPAN><BR> 七
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0701.htm">其它</A></SPAN>
<P style="LINE-HEIGHT: 17pt" align=center><BR><BR>
<P class=p1 align=center><A
href="http://www.hongen.com/pc/bin/msg.pl?file_id=dos_1" target=_blank
traget="_black"><IMG height=54 alt=请您留言 src="cd.files/message.gif"
width=64 border=0><BR>谈谈您的看法</A> <BR>
<SCRIPT language=javascript>speak_num="za"</SCRIPT>
<SCRIPT language=javascript src=""></SCRIPT>
<SCRIPT language=javascript>var num=0if (!isNaN(speak_num)){ num=speak_num;}else{ num=0}document.writeln ("已有")document.writeln (num)document.writeln ("条发言")</SCRIPT>
</P>
<P style="LINE-HEIGHT: 17pt" align=center><BR> <BR> </P></TD>
<TD width=1 bgColor=#0586d7 height=304><IMG height=1
src="cd.files/blank.gif" width=1> </TD>
<TD vAlign=top width=614 background=cd.files/line.gif bgColor=#ffffff>
<TABLE width="95%" align=center border=0>
<TBODY>
<TR>
<TD>
<P align=center><BR><B class=p3>DOS 常用命令</B></P>
<P> ——cd
<DIV class=p2 style="LINE-HEIGHT: 17pt">
<P> 我们已经使用过cd命令,大家肯定还记得吧。cd是英文change
directory(改变目录)的缩写,也是最常用的命令之一。顾名思义,如果想要进入一个目录,显然该采用这个命令了。</P>
<P> 在讲cd命令之前,我们先来谈谈提示符是什么意思。现在的提示符是<FONT
color=#0000ff>c:\></FONT> </P>
<P align=center><IMG height=77 alt="提示符C:\>"
src="cd.files/dos0204.gif" width=420></P>
<P align=left> 这个<FONT
color=#0000ff>c:</FONT>说明现在的工作盘是c盘,即当前盘是硬盘。这个紧接着c:后面的<FONT
color=#0000ff>\</FONT>告诉我们,当前的工作目录是根目录。这个<FONT
color=#0000ff>></FONT>的作用只是为了把工作目录和我们要输入的命令分隔开来,没有其它的意义。这样,我们就可以从提示符上看出当前的工作盘和工作目录是什么,你如果清楚了这一点,那么学习cd命令就变得轻松自如了。</P>
<P align=left> 好,现在我们想进入dos目录,该怎么办呢?对了,直接输入<FONT color=#0000ff>cd
dos</FONT>就行了。</P>
<P align=center><IMG height=94 alt="命令:cd dos"
src="cd.files/dos0205.gif" width=419></P>
<P
align=left> 你注意,提示符变了,变成 c:\dos>了。这就告诉我们,我们当前的工作目录是c盘根目录下的dos子目录。
如果想退回上一层目录,就键入<FONT
color=#0000ff>cd ..</FONT>,看提示符又变回来了。是不是很简单呢?进入子目录就输入<FONT
color=#0000ff>cd+空格+子目录名</FONT>,想返回上一层目录,就输入<FONT
color=#0000ff>cd ..</FONT>(两点)。 </P>
<P align=left> 现在你来练习一下,要进入windows子目录,怎么办?当然是输入<FONT
color=#0000ff>cd windows</FONT>。
在windows目录下,还有一个子目录:system,再进去看看,输入<FONT
color=#0000ff>cd system</FONT>,好,暂停一下,这时我想要返回到根目录,这该怎么办?用cd ..吗?那当然可以,不过得用两次。我们有更好的办法,其实只需键入<FONT
color=#0000ff>cd\</FONT>三个字符可以一下子就回到根目录,自己试试吧。</P>
<P
align=left> cd命令的用途就是让我们可以到任何一个目录去。我们把不同功能的文件分别安排在不同的目录内,是为了管理方便,可是当我们要使用某个文件时,我们就得到该文件所在的目录中去。
比如说,要使用wps,就要到wps所在的目录;要用windows,就要到windows所在的目录。事实上,你学会了cd命令,你就可以到达磁盘中的任何一个目录了。不过有一点提醒你注意,如果想要到非当前磁盘的某个目录时,要先输入盘符,回车后,等当前盘变为另一个磁盘时,你才可以使用cd命令到达你想要去的目录。
</P></DIV></TD></TR></TBODY></TABLE>
<P align=center> </P>
<P class=p1 align=center><A
href="http://www.hongen.com/pc/newer/os/dos/dos0201.htm">上一节</A> <A
href="http://www.hongen.com/pc/newer/os/dos/dos0203.htm">下一节</A></P>
<P class=p2 align=center><A
href="http://www.hongen.com/pc/bin/msg.pl?file_id=dos_1"
target=_blank><IMG height=54 alt=请您留言 src="cd.files/message.gif" width=64
border=0><BR>谈谈您的看法</A>
<SCRIPT language=javascript>speak_num="za"</SCRIPT>
<SCRIPT language=javascript src=""></SCRIPT>
<SCRIPT language=javascript>var num=0if (!isNaN(speak_num)){ num=speak_num;}else{ num=0}document.writeln ("已有")document.writeln (num)document.writeln ("条发言")</SCRIPT>
</P>
<P> </P></TD></TR></TBODY></TABLE><!--底部开始-->
<SCRIPT language=Javascript src="cd.files/foot.js"></SCRIPT>
<!--底部结束--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -