help cd, help pwd
-------------------------------------------------------------------------------
Title
[D] cd -- Change directory
Syntax
Stata for Windows
cd
cd ["]directory_name["]
cd ["]drive:["]
cd ["]drive:directory_name["]
pwd
Stata for Mac
cd
cd ["]directory_name["]
pwd
Stata for Unix
cd ["]directory_name["]
pwd
If your directory_name contains embedded spaces, remember to enclose it
in double quotes.
Description
Stata for Windows: cd changes the current working directory to the
specified drive and directory. pwd is equivalent to typing cd without
arguments; both display the name of the current working directory. Note:
You can shell out to a DOS window; see [D] shell. However, typing !cd
directory_name does not change Stata's current directory; use the cd
command to change directories.
Stata for Mac and Stata for Unix: cd (synonym chdir) changes the current
working directory to directory_name or, if directory_name is not
specified, the home directory. pwd displays the path of the current
working directory.
Examples
Stata for Windows:
. cd
. cd \data\city
. cd d:
. cd detail
Stata for Mac:
. pwd
. cd ~:data:city
. cd "~:Analysis:Second Results"
Stata for Unix:
. pwd
. cd ~/data/city
Also see
Manual: [D] cd
Help: [D] copy, [D] dir, [D] erase, [D] mkdir, [D] rmdir, [D] shell,
[D] type