pwd 744 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .TH PWD 1
  2. .SH NAME
  3. pwd, pbd \- working directory
  4. .SH SYNOPSIS
  5. .B pwd
  6. .br
  7. .B pbd
  8. .SH DESCRIPTION
  9. .I Pwd
  10. prints the path name of the working (current) directory.
  11. .I Pwd
  12. is guaranteed to return the same path that was used to
  13. enter the directory.
  14. If, however, the name space has changed, or directory names
  15. have been changed, this path name may no longer be valid.
  16. (See
  17. .IR fd2path (2)
  18. for a description of
  19. .BR pwd 's
  20. mechanism.)
  21. .PP
  22. .I Pbd
  23. prints the base name of the working (current) directory.
  24. It prints no final newline and is intended for applications
  25. such as constructing shell prompts.
  26. .SH SOURCE
  27. .B /sys/src/cmd/pwd.c
  28. .br
  29. .B /sys/src/cmd/pbd.c
  30. .SH SEE ALSO
  31. .I cd
  32. in
  33. .IR rc (1),
  34. .IR bind (1),
  35. .IR intro (2),
  36. .IR getwd (2),
  37. .IR fd2path (2)