code: def cmd_cd(self, *args):
          
          if len(args) == 0:
              path = os.environ['HOME']
          else:
              path = args[0]
          os.chdir(path)
          self.cmd_pwd()
docs: cd [path]
  
          Change the current working directory to `path`.