Skip to content

pwd

Print the current working directory.

s = pwd

Returns the path of the current working directory (where relative file paths are resolved from). Equivalent to the shell’s pwd.

pwd % '/Users/me/projects'
  • filemarker — Character that separates a function name from its file name.
  • filesep — Platform-specific path separator.
  • fileparts — Split a file path into its components.