Title: Theory / Unimportant / CS / command line / file / cd;
Tags: hasNotNewEffectReturnsMeaning some_instruction computer_to_instruction fromCommand fromCommandLine FromVariables

Question: What is the default of cd related to symbolic links
Answer: -L
Chapter: man

Instruction: cd
Effect: Change the current directory to the value of HOME shell variable.
Chapter: man
Returns: 0 if directory changed, nonzero otherwise

Instruction: /path
Effect: Change the current directory to the directory /path
Context: cd
Chapter: man

Instruction: path
Effect: Change the current directory to d/path, with d the first element of the variable CDPATH such that this directory exists.
If no such directory exists and cdable_vars is set, the word is assumed to be a variable name. If that variable has a value, its value is used for DIR.
If change is successfull, set OLDPWD to the last value of PWD
Context: cd
Chapter: man
Variables: path not starting with /

Fla: -L
Effect: Force symbolic links to be followed
Prefix: cd
Chapter: man

Fla: -P
Effect: use the physical directory structure without following symbolic links
Prefix: cd
Chapter: man

Variable: CDPATH
Meaning: A list of directory by which to prepend a non-absolute cd argument. Separated by ":"
Chapter: man

Variable: cdable_vars
Meaning: A variable which, when set, state that the arguments of cd may be vars
Chapter: man

Fla: -
Effect: Equivalent to "$OLDPWD" && pwd
Prefix: cd
Chapter: man

Variable: PWD
Meaning: The current directory
Chapter: man cd

Variable: OLDPWD
Meaning: The last value of PWD
Chapter: man cd