pwd

Returns current directory.

Syntax

  • pwd()

  • r = pwd()

Output argument

  • r - a string: current directory.

Description

Returns the current working directory.

pwd() without input argument displays the current working directory.

Example

r = pwd()
pwd()

See also

cd, dir.

History

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated