2 * Introduction to operatingsystem::
3 * Directory operations::
5 * Environment operations::
8 @node Introduction to operatingsystem, Directory operations, Package operatingsystem, Package operatingsystem
9 @section Introduction to operatingsystem
11 Package @code{operatingsystem} contains functions for operatingsystem-tasks, like file system operations.
14 @node Directory operations, File operations, Introduction to operatingsystem, Package operatingsystem
15 @section Directory operations
19 @deffn {Function} chdir (@var{dir})
20 Change to directory @var{dir}
24 @deffn {Function} mkdir (@var{dir})
25 Create directory @var{dir}
29 @deffn {Function} rmdir (@var{dir})
30 remove directory @var{dir}
33 @anchor{getcurrentdirectory}
34 @deffn {Function} getcurrentdirectory ()
35 returns the current working directory.
37 See also @mrefdot{directory}
44 (%i1) load("operatingsystem")$
45 (%i2) mkdir("testdirectory")$
46 (%i3) chdir("testdirectory")$
48 (%i5) rmdir("testdirectory")$
51 @node File operations, Environment operations, Directory operations, Package operatingsystem
52 @section File operations
56 @deffn {Function} copy_file (@var{file1}, @var{file2})
57 copies file @var{file1} to @var{file2}
61 @deffn {Function} rename_file (@var{file1}, @var{file2})
62 renames file @var{file1} to @var{file2}
66 @deffn {Function} delete_file (@var{file1})
67 deletes file @var{file1}
71 @node Environment operations, , File operations, Package operatingsystem
72 @section Environment operations
76 @deffn {Function} getenv (@var{env})
77 Get the value of the environment variable @var{env}
82 (%i1) load("operatingsystem")$
84 (%o2) /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin