Stata 15 help for cd

[D] cd -- Change directory

Syntax

Stata for Windows

cd cd ["]directory_name["] cd ["]drive:["] cd ["]drive:directory_name["] pwd

Stata for Mac and Stata for Unix

cd 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 Windows command prompt; 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 and Stata for Unix: . pwd . cd ~/data/city


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index