cd
Change the current working directory.
Syntax
Section titled “Syntax”cdcd(dir)cd dirDescription
Section titled “Description”Without an argument, prints the current working directory. With a path string, changes to that directory. Subsequent relative file references resolve from the new working directory.
Like a Unix shell command, cd accepts the unparenthesized form cd somepath in addition to the function-call form cd('somepath').
Examples
Section titled “Examples”cd % print current directorycd('data/raw')cd .. % parent directory