Skip to main content

PWD (path)

Laurence MorganLess than 1 minute

PWD (path)

Current working directory


PWD is an environmental variable containing the current working directory.

It is updated via cd however you can overwrite its value manually via export.


  • pwd
  • PWD

See Also

  • PWDHIST (json): History of each change to the sessions working directory
  • cd: Change (working) directory
  • export: Define an environmental variable and set it's value
  • path: Structured object for working with file and directory paths

This document was generated from gen/variables/PWD_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan