Maxima 5.41.0 Manual: 74. operatingsystem

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

# 74. operatingsystem

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 74.1 Introduction to operatingsystem

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

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 74.2 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")$

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 74.3 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

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 74.4 Environment operations

Function: getenv (env)

  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 dpb build user on April, 8 2018 using texi2html 1.76.