Home

Getting Started

Utilities

Indexing

Omnidex

Development

Tutorials

Quick Links

 

ODXSQL

Commands

Syntax

Options

Example

 

CREATE DIRECTORY

DIR

PWD

 

ODXSQL

Special Characters

USE Files

Commands

CD

The CD command is used to change the current working directory.

Changing the current working directory applies only to the current ODXSQL session. When ODXSQL is terminated, the system prompt will return to the same directory that it was in when ODXSQL started.

The supported syntax is similar to the operating system's syntax for changing directories.

Move to the HOME directory

Enter CD at the ODXSQL command prompt to change the current working directory to the user HOME directory. In this case, the HOME environment variable must be set.

cd

Move to a specific directory

Explicitly state which directory to move to.

cd c:\parentdirectory\subdirectory

Move to a directory relative to the current working directory

Move to the parent directory of the current working directory.

cd ..

Move to the parent directory of the parent directory of the current working directory.

cd ../..

Move to another subdirectory of the parent directory.

cd ../anothersubdirectory

See also: PWD (Print Working Directory)

 

Syntax

CD [path]

CD
Required

path
Optional. The path or directory to change to. If omitted, it will change to the HOME directory as set by the HOME environment variable.

 

Options

There are currently no options available for this command.

Support was added for future enhancements.

 

Example

UNIX

[/users/test/ordersdb/]$ odxsql orders.env
>cd idx
/users/test/ordersdb/idx/
>cd
/users/test/
>exit
[/users/test/ordersdb/]$

Windows

c:\omnidex\demodata> odxsql orders.env
>cd ..
c:\omnidex
>cd demodata
c:\omnidex\demodata
>exit
c:\omnidex\demodata>

 

Top