Shell Commands/CD

From MorphOS Library

Revision as of 19:51, 2 March 2015 by JPV (talk | contribs) (Created page with "'''CD''' - Changes or displays current directory DIR <nowiki> DIR - name of the new directory</nowiki> CD with no arguments displays the name of the current directory. When...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

CD - Changes or displays current directory

DIR

DIR - name of the new directory

CD with no arguments displays the name of the current directory. When a valid directory name is given, CD makes the named directory the current directory.

NOTE: To move directly to the root directory of the current device, use CD followed by a space and a colon; for example, CD :

NOTE2: MorphOS supports an implied CD so that the CD command itself can often be left out. Enter the directory name, path, colon, or slashes at the prompt.

 
Example 1: SYS:> cd libs
           SYS:libs/>

Example 2: SYS:MorphOS/C/> //
           SYS:>