cd
Syntax
cd directory
Description
Changes the current directory. This is the equivalent of the
cd
command in the interactive shells.
After changing to the directory directory
, the define
alias _CWD
will be set to this directory.
Subsequent commands that rely on relative paths will use this directory as the starting point.
Examples of affected commands are spool
, run
,
savehistory
, host
, and edit
.
Example
Command> host pwd; /tmp/dir1 Command> cd /tmp/dir2; Command> host pwd; /tmp/dir2