Change (working) directory
Changes current working directory.
» cd ~
cd without a parameter will also change to the current user's home directory:
Navigating to the previous directory:
» cd -
» cd /etc/
» 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:
Change to a previous directory:
» cd $PWDHIST[-1]
cd -is syntactic sugar for
Some people prefer to omit
cd and just write the path, with their shell automatically changing to that directory if the "command" is just a directory. In Murex you can enable this behaviour by turning on "auto-cd":
config set shell auto-cd true
- Reserved Variables: Special variables reserved by Murex
source: Import Murex code from another file of code block
This document was generated from builtins/core/management/functions_doc.yaml.