From LQWiki
Jump to navigation Jump to search

pwd (short for Print Working Directory) is the command that outputs the name of current working directory to stdout.


To check what your current working directory is, simply type


at the prompt, and then press enter.

Provided by

Most (all?) Linux distributions incorporate this from the GNU Coreutils: and use its man page

Related Commands

All of these relate to the context of the current session.

  • stty - show or alter terminal settings
  • printenv - show environment variables
  • tty - identify the controlling terminal

See also

shell scripting

This article is a stub and needs to be finished. Plunge forward and help it grow!