# cd command

The cd BASIC program changes the current
working directory to the specified new directory. The new directory
remains until the D3 process is disconnected (not logged off) or a
new cd command is issued. If the new directory
is omitted, the default home directory is selected.

**For Windows:**Not Supported

## Syntax

```
cd {new.directory}
```
Warning: The cd command is
not equivalent to !cd *new.directory*, which changes the working directory of the temporary shell
created by the ! TCL command, but not the
working directory of the D3 process itself.

## Example(s)

```
cd /tmp
```

## See also

- [%chdir() function](https://d3codex.com/pickbasic-flashbasic/percent-chdir-function/)

---
Source: https://d3codex.com/tcl/cd-command/ - part of the D3Codex reference.
