logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

pwd.1 (936B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-03-16
  5. .Dt PWD 1
  6. .Os
  7. .Sh NAME
  8. .Nm pwd
  9. .Nd print working directory
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl L Ns | Ns Fl P
  13. .Sh DESCRIPTION
  14. .Nm
  15. prints the full path of the current working directory.
  16. .Sh OPTIONS
  17. .Bl -tag -width _L
  18. .It Fl L
  19. (default)
  20. Use the
  21. .Ev PWD
  22. environment variable
  23. if it contains an absolute pathname of the current directory,
  24. and doesn't contains dot or dot-dot components.
  25. .It Fl P
  26. Writes current directory, without any components referring to a symbolic link.
  27. .El
  28. .Pp
  29. If both
  30. .Fl L
  31. and
  32. .Fl P
  33. are passed, the last one applies.
  34. .Sh EXIT STATUS
  35. .Ex -std
  36. .Sh SEE ALSO
  37. .Xr getcwd 3
  38. .Sh STANDARDS
  39. .Nm
  40. should be compliant with the
  41. IEEE Std 1003.1-2024 (“POSIX.1”)
  42. specification.
  43. .Sh AUTHORS
  44. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me