cd [-LP] [
dir] cd [-LP] [-]
With no arguments, change to the user’s home directory. Otherwise, change the working directory to dir. If dir is a relative pathname but is not in the current directory, the CDPATH variable is searched. A directory of - stands for the previous directory.
Use the logical path (what the user typed, including any symbolic links) for cd .. and the value of PWD. This is the default.
Use the actual filesystem physical path for cd .. and the value of PWD.