ChimeraX docs icon

Command: cd

Usage:
cddirectory ]

The command cd changes the current working directory to the specified directory, or if nothing is specified, to the user's home directory. The result is reported in the Log. Substituting the word browse for directory brings up a file browser window for choosing the location interactively. Alternatively, dragging and dropping the icon for a file or directory into the Command Line Interface substitutes the corresponding pathname text.

Another way to choose the location interactively is by choosing File... Set Working Folder from the menu.

Note that opening a ChimeraX command file changes the current directory to the directory containing that file. After execution of the file finishes, the current directory is changed back to what it was previously.

The command pwd simply reports the working directory without changing it. See also: open, save


UCSF Resource for Biocomputing, Visualization, and Informatics / May 2024