Table of Contents

The cd command

The cd command changes the current directory. Simply type
cd /some/directory
at the command line and press <enter>.

To make this work, CLEX treats the cd command as a special case and processes it internally.

It is required that the command is in the form of a single command and all special shell characters occurring in the directory name are quoted, otherwise the command will not be processed internally. Normal tilde substitution is supported however.

The cd command is an alternative to using the directory panel to change directories.

Examples:

This command
cd /var/log
will be processed internally and will change the working directory, while this command
cd /dev ; ls -l lp*
will be executed normally, i.e. by a separate process and the effect of cd will be lost after returning to CLEX.

Notes: