Introduction to operatingsystem
===============================

Package operatingsystem contains functions for operatingsystem-tasks, like file system operations.

Directory operations
====================

 -- Function: chdir (DIR)
     Change to directory DIR

 -- Function: mkdir (DIR)
     Create directory DIR

 -- Function: rmdir (DIR)
     remove directory DIR

 -- Function: getcurrentdirectory ()
     returns the current working directory.

     See also directory

Examples:

     (%i1) load("operatingsystem")$
     (%i2) mkdir("testdirectory")$
     (%i3) chdir("testdirectory")$
     (%i4) chdir("..")$
     (%i5) rmdir("testdirectory")$

File operations
===============

 -- Function: copy_file (FILE1, FILE2)
     copies file FILE1 to FILE2

 -- Function: rename_file (FILE1, FILE2)
     renames file FILE1 to FILE2

 -- Function: delete_file (FILE1)
     deletes file FILE1

Environment operations
======================

 -- Function: getenv (ENV)
     Get the value of the environment variable ENV

     Example:

          (%i1) load("operatingsystem")$
          (%i2) getenv("PATH");
          (%o2) /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin