cd [-L|-P] [DIRECTORY]
cd -
The cd
builtin command is used to change the current working directory
cd DIRECTORY
)cd -
) as saved in the OLDPWD shell variableDIRECTORY
argument)
The cd
builtin command searches the directories listed in CDPATH for a matching directory.
The default behaviour is to follow symbolic links unless the -P
option is given or the shell is configured to do so (see the -P
option of the set builtin command).
Option | Description |
---|---|
-L | Follow symbolic links (default) |
-P | Do not follow symbolic links |
-@ | Browse a file's extended attributed, if supported |
cd
cd -
-P
option of the set builtin command