[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
74.1 Introduction to operatingsystem | ||
74.2 Directory operations | ||
74.3 File operations | ||
74.4 Environment operations |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Package operatingsystem
contains functions for operatingsystem-tasks, like file system operations.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Change to directory dir
Create directory dir
remove directory dir
returns the current working directory.
See also directory
.
Examples:
(%i1) load("operatingsystem")$ (%i2) mkdir("testdirectory")$ (%i3) chdir("testdirectory")$ (%i4) chdir("..")$ (%i5) rmdir("testdirectory")$
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
copies file file1 to file2
renames file file1 to file2
deletes file file1
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Get the value of the environmentvariable env
Example:
(%i1) load("operatingsystem")$ (%i2) getenv("PATH"); (%o2) /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Raymond Toy on May, 22 2016 using texi2html 1.76.