SQL/MX 2.x Reference Manual (H06.04+)

MXCI Commands
HP NonStop SQL/MX Reference Manual540440-003
4-7
CD Command
CD Command
The CD command changes the current working session directory.
You can use CD only within an MXCI session.
directory
is an absolute or relative path name that specifies the new current working
directory. An absolute path name begins with a slash (/), the symbol representing
the root directory. A relative path name defines a path relative to the current
directory; it does not begin with /.
If you omit the name of the directory, the current working directory reverts to your
home directory.
Considerations for CD
End of an MXCI Session
When your MXCI session ends, the working directory in effect when you started MXCI
becomes the current working directory.
During an MXCI Session
During your MXCI session, you can use SHOW SESSION or its equivalent ENV to
display the name of the current working directory.
Examples of CD
Set the current working directory:
cd /prjdir/testdir;
The next sequence produces the same result but first resets the current directory
to the root directory:
cd /;
cd prjdir/testdir;
Set the current working directory to your home directory:
cd;
CD [directory]