cd -
To change the working directory, the process must have search (execute) permission in all directory components of the full pathname of a directory to be changed to.
If the shell is reading its commands from a terminal, and the specified directory does not exist (or some component cannot be searched), spelling correction is applied to each component of directory, in a search for the ``correct'' name. If a reasonable match can be found, the shell asks whether or not to try and change directory to the corrected directory name; an answer of n means ``no,'' and anything else is taken as ``yes''.
Wildcard designators will work with the cd command.
Both ksh(C) and csh(C) recognize cd ~user to mean change to the home directory of a specified user. The command cd ~ changes to the directory specified by the environment variable HOME.
ksh and sh implement the following cd functionality:
Software storage objects (SSOs) preserve the traditional directory structure and filenames by using symbolic links to point to the real files which are maintained in the /var and /opt/var directory hierarchies (see hierarchy(M)). Using the -L option to the version of cd built into the Bourne and C shells allows you to traverse the traditional directory structure while hiding the details of the implementation of SSOs.
CDPATH=.:$HOMEThe command cd - in the ksh is equivalent to:
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.