Skip to content
Brain edited this page May 2, 2023 · 1 revision

CHDIR

CHDIR string-expression

Change the current directory of the current process (CSD) to the new relative or absolute path provided by string-expression. Any path starting with a / is considered to be an absolute path, and any path not starting with / is considered to be relative to the current directory.

The initial /programs/init process is launched with its CSD set to / (the root directory of the virtual file system) and any process launched from this point on will inherit the current directory of the current process.

rocketsh has a special built-in command for chdir (its short form is cd) to change directories, or you may directly use this BASIC keyword.

Clone this wiki locally