octave: Current Working Directory

 
 36.8 Current Working Directory
 ==============================
 
  -- : cd DIR
  -- : cd
  -- : OLD_DIR = cd (DIR)
  -- : chdir ...
      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 ~/octave
 
      changes the current working directory to ‘~/octave’.  If the
      directory does not exist, an error message is printed and the
      working directory is not changed.
 
      ‘chdir’ is an alias for ‘cd’ and can be used in all of the same
      calling formats.
 
      Compatibility Note: When called with no arguments, MATLAB prints
      the present working directory rather than changing to the user’s
      home directory.
 
DONTPRINTYET       See also: Seepwd XREFpwd, Seemkdir XREFmkdir, *notermdir:
DONTPRINTYET       See also: Seepwd XREFpwd, Seemkdir XREFmkdir, Seermdir

      XREFrmdir, Seedir XREFdir, Seels XREFls.
 
  -- : ls
  -- : ls FILENAMES
  -- : ls OPTIONS
  -- : ls OPTIONS FILENAMES
  -- : LIST = ls (...)
 
      List directory contents.
 
      The ‘ls’ command is implemented by calling the native operating
      system’s directory listing command—available OPTIONS will vary from
      system to system.
 
      Filenames are subject to shell expansion if they contain any
      wildcard characters ‘*’, ‘?’, ‘[]’.  To find a literal example of a
      wildcard character the wildcard must be escaped using the backslash
      operator ‘\’.
 
      If the optional output LIST is requested then ‘ls’ returns a
      character array with one row for each file/directory name.
 
      Example usage on a UNIX-like system:
 
           ls -l
                ⊣ total 12
                ⊣ -rw-r--r--   1 jwe  users  4488 Aug 19 04:02 foo.m
                ⊣ -rw-r--r--   1 jwe  users  1315 Aug 17 23:14 bar.m
 
DONTPRINTYET       See also: Seedir XREFdir, Seereaddir XREFreaddir, *noteDONTPRINTYET DONTPRINTYET       See also: Seedir XREFdir, Seereaddir XREFreaddir, See
      glob XREFglob, Seewhat XREFwhat, Seestat XREFstat, *noteDONTPRINTYET DONTPRINTYET       See also: Seedir XREFdir, Seereaddir XREFreaddir, See
      glob XREFglob, Seewhat XREFwhat, Seestat XREFstat, See
      filesep XREFfilesep, Seels_command XREFls_command.
 
  -- : VAL = ls_command ()
  -- : OLD_VAL = ls_command (NEW_VAL)
      Query or set the shell command used by Octave’s ‘ls’ command.
 
      See also: Seels XREFls.
 
  -- : dir
  -- : dir (DIRECTORY)
  -- : [LIST] = dir (DIRECTORY)
      Display file listing for directory DIRECTORY.
 
      If DIRECTORY is not specified then list the present working
      directory.
 
      If a return value is requested, return a structure array with the
      fields
 
      name
           File or directory name.
 
      date
           Timestamp of file modification (string value).
 
      bytes
           File size in bytes.
 
      isdir
           True if name is a directory.
 
      datenum
           Timestamp of file modification as serial date number (double).
 
      statinfo
           Information structure returned from ‘stat’.
 
      If DIRECTORY is a filename, rather than a directory, then return
      information about the named file.  DIRECTORY may also be a list
      rather than a single directory or file.
 
      DIRECTORY is subject to shell expansion if it contains any wildcard
      characters ‘*’, ‘?’, ‘[]’.  To find a literal example of a wildcard
      character the wildcard must be escaped using the backslash operator
      ‘\’.
 
      Note that for symbolic links, ‘dir’ returns information about the
      file that the symbolic link points to rather than the link itself.
      However, if the link points to a nonexistent file, ‘dir’ returns
      information about the link.
 
DONTPRINTYET       See also: Seels XREFls, Seereaddir XREFreaddir, *noteglob:
DONTPRINTYET DONTPRINTYET       See also: Seels XREFls, Seereaddir XREFreaddir, Seeglob

      XREFglob, Seewhat XREFwhat, Seestat XREFstat, *notelstat:
DONTPRINTYET DONTPRINTYET       See also: Seels XREFls, Seereaddir XREFreaddir, Seeglob

      XREFglob, Seewhat XREFwhat, Seestat XREFstat, Seelstat

      XREFlstat.
 
  -- : pwd ()
  -- : DIR = pwd ()
      Return the current working directory.
 
      See also: Seecd XREFcd, Seedir XREFdir, Seels XREFls,
      Seemkdir XREFmkdir, Seermdir XREFrmdir.