| PWD(1) | General Commands Manual | PWD(1) | 
pwd —
| pwd | [ -LP] | 
pwd writes the absolute pathname of the current working
  directory to the standard output.
The following options are available:
-LPWD environment variable is an absolute
      pathname that contains neither "/./" nor "/../" and
      references the current directory, then PWD is
      assumed to be the name of the current directory.-PThe default for the pwd command is
    -P.
pwd is usually provided as a shell builtin
    (which may have a different default).
pwd utility exits 0 on success,
  and >0 if an error occurs.
pwd utility is expected to be conforming to
  IEEE Std 1003.1 (“POSIX.1”), except that
  the default is -P not -L.
pwd utility appeared in
  Version 5 AT&T UNIX.
dirs is always faster (although it can give a
  different answer in the rare case that the current directory or a containing
  directory was moved after the shell descended into it).
pwd -L relies on
    the file system having unique inode numbers. If this is not true (e.g., on
    FAT file systems) then pwd
    -L may fail to detect that
    PWD is incorrect.
| August 12, 2016 | NetBSD 9.4 |