12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

312 <strong>GNU</strong> <strong>Octave</strong>uid = getuid ()Return the real user id of the current process.Built-in Functionegid = getegid ()Return the effective group id of the current process.Built-in Functiongid = getgid ()Return the real group id of the current process.Built-in Function34.5 Environment Variablesgetenv (var)Return the value of the environment variable var. For example,getenv ("PATH")returns a string containing the value of your path.Built-in Functionputenv (var, value)Set the value of the environment variable var to value.Built-in Function34.6 Current Working Directorycd dirCommandchdir dirCommandChange the current working directory to dir. If dir is omitted, the current directoryis changed to the users 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.ls optionsList directory contents. For example,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.mCommandThe dir and ls commands are implemented by calling your system’s directory listingcommand, so the available options may vary from system to system.pwd ()Return the current working directory.Built-in Function

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!