Change (working) directory
Changes current working directory.
# Home directory » cd: ~ # Absolute path » cd: /etc/ # Relative path » cd: Documents » cd: ./Documents
cd updates an environmental variable,
$PWDHIST with an array of paths. You can then use that to change to a previous directory
# View the working directory history » $PWDHIST # Change to a previous directory » cd $PWDHIST