cd

BASH_BUILTINS(1)                                              BASH_BUILTINS(1)

cd [-L|-P] [dir]
Change the current directory to dir. The variable HOME is
the default dir. The variable CDPATH defines the search path
for the directory containing dir. Alternative directory
names in CDPATH are separated by a colon (:). A null direc-
tory name in CDPATH is the same as the current directory,
i.e., “.”. If dir begins with a slash (/), then CDPATH is
not used. The -P option says to use the physical directory
structure instead of following symbolic links (see also the
-P option to the set builtin command); the -L option forces
symbolic links to be followed. An argument of – is equiva-
lent to $OLDPWD. If a non-empty directory name from CDPATH
is used, or if – is the first argument, and the directory
change is successful, the absolute pathname of the new work-
ing directory is written to the standard output. The return
value is true if the directory was successfully changed;
false otherwise.

GNU Bash-3.0                      2004 Apr 20                 BASH_BUILTINS(1)

One thought on “cd”

Comments are closed.