Name
cd
Synopsis
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.
Options
- -L
Use the logical path (what the user typed, including any symbolic links) for cd .. and the value of PWD. This is the default.
- -P
Use the actual filesystem physical path for cd .. and the value of PWD.
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.