Change the working directory.

Synopsis

cd [DIRECTORY]

Description

Change the current working directory to DIRECTORY. If no directory is given, changes to the home directory. Runs in the just-bash WASM shell inside SLICC.

Special Directories

~ Home directory (/home/user).

- Previous working directory.

.. Parent directory.

Examples

$ cd /workspace/project

Change to a specific directory.

$ cd ..

Go up one level.

$ cd -

Return to the previous directory.

See Also

pwd, pushd, popd