cd

Purpose

Change working directory.

Synopsis

cd
cd directory
cd ..

Description

cd, by itself, prints out the current directory.

cd directory sets the current directory to the one specified.

cd .. moves to the directory above the current one.

Examples

UNIX: cd /usr/local/matlab/toolbox/demos

DOS: cd C:MATLAB\DEMOS

VMS: cd DISK1:[MATLAB.DEMOS]

Macintosh: cd Toolbox:Demos

To specify a Macintosh directory name that includes spaces, enclose the name in single quotes, as in 'Toolbox:New M-Files'.

See Also

dir, lookfor, path, what

(c) Copyright 1994 by The MathWorks, Inc.