📄 cd.hlp
字号:
{smcl}
{* 15dec2004}{...}
{cmd:help cd}, {cmd:help pwd}
{hline}
{title:Title}
{p2colset 5 15 17 2}{...}
{p2col :{hi:[D] cd} {hline 2}}Change directory{p_end}
{p2colreset}{...}
{title:Syntax}
{phang}
Stata for Windows
{cmd:cd}
{p 8 11 2}{cmd:cd} [{cmd:"}]{it:directory_name}[{cmd:"}]{p_end}
{p 8 11 2}{cmd:cd} [{cmd:"}]{it:drive}{cmd::}[{cmd:"}]{p_end}
{p 8 11 2}{cmd:cd} [{cmd:"}]{it:drive}{cmd::}{it:directory_name}[{cmd:"}]{p_end}
{cmd:pwd}
{phang}
Stata for Macintosh
{cmd:cd}
{p 8 11 2}{cmd:cd} [{cmd:"}]{it:directory_name}[{cmd:"}]{p_end}
{cmd:pwd}
{phang}
Stata for Unix
{p 8 11 2}{cmd:cd} [{cmd:"}]{it:directory_name}[{cmd:"}]{p_end}
{cmd:pwd}
{phang}
Note that if your {it:directory_name} contains embedded spaces, remember to
enclose it in double quotes.
{title:Description}
{pstd}
Stata for Windows:
{opt cd} changes the working directory to the specified drive and
directory. {opt pwd} is equivalent to typing {opt cd} without arguments;
both display the name of the current working directory.
Note: You can shell out to a DOS window; see {helpb shell}. However,
typing {cmd:!cd} {it:directory_name} does not change Stata's current
directory; use the {opt cd} command to change directories.
{pstd}
Stata for Macintosh and Stata for Unix:
{opt cd} (synonym {opt chdir}) changes the current working directory to
{it:directory_name} or, if {it:directory_name} is not specified, the home
directory. {opt pwd} displays the path of the current working directory.
{title:Examples}
{phang}Stata for Windows:{p_end}
{phang2}{cmd:. cd}{p_end}
{phang2}{cmd:. cd \data\city}{p_end}
{phang2}{cmd:. cd d:}{p_end}
{phang2}{cmd:. cd detail}{p_end}
{phang}Stata for Macintosh:{p_end}
{phang2}{cmd:. pwd}{p_end}
{phang2}{cmd:. cd ~:data:city}{p_end}
{phang2}{cmd:. cd "~:Analysis:Second Results"}{p_end}
{phang}Stata for Unix:{p_end}
{phang2}{cmd:. pwd}{p_end}
{phang2}{cmd:. cd ~/data/city}{p_end}
{title:Also see}
{psee}
Manual: {bf:[D] cd}
{psee}
Online: {helpb copy}, {helpb dir}, {helpb erase},
{helpb mkdir}, {helpb shell}, {helpb type}{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -