To change the current working directory, simply enter its name, as if you were going to execute a command. Relative paths are resolved automatically.
The following system shell built-ins relate to the current working directory:
pwd - prints the current working directory. Note that unlike other built-ins, this one is not prefixed with "%" for convenience and consistency with other command lines.
cd directory
:
does the same thing as just entering
directory
.
- or cd -: goes to the directory that was current before this one.
%pushd [newDir] : pushes the current directory, and optionally changes to newDir.
%popd: sets the current working directory to the one stored at the top of the directory stack, then removes that entry from the stack.
%dirstack: lists all directories in the directory stack.