Next: , Previous: Commands, Up: Commands


2.1 cd

The cd command changes the working directory.

Syntax:

           cd '<directory-name>'
     

The directory name must be enclosed in quotes.

Examples:

           cd 'subdir'
           cd ".."
     

It is recommended for DOS and Windows users to use single-quotes—backslash [\] has special significance inside double-quotes and has to be escaped. For example,

           cd "c:\newdata"

fails, but

           cd 'c:\newdata'
           cd "c:\\newdata"

works as expected.