Change the current working directory to dir. If dir is omitted, the current directory is changed to the user's home directory. For example,
cd ~/octaveChanges the current working directory to ~/octave. If the directory does not exist, an error message is printed and the working directory is not changed.