mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 11:43:37 +08:00
8d20748f4a
This PR also adds "See Also" section in the related commands.
29 lines
639 B
ReStructuredText
29 lines
639 B
ReStructuredText
.. _cmd-pwd:
|
|
|
|
pwd - output the current working directory
|
|
==========================================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
::
|
|
|
|
pwd [(-P | --physical)] [(-L | --logical)]
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
``pwd`` outputs (prints) the current working directory.
|
|
|
|
The following options are available:
|
|
|
|
- ``-L`` or ``--logical`` Output the logical working directory, without resolving symlinks (default behavior).
|
|
|
|
- ``-P`` or ``--physical`` Output the physical working directory, with symlinks resolved.
|
|
|
|
See Also
|
|
--------
|
|
|
|
Navigate directories using the :ref:`directory history <directory-history>` or the :ref:`directory stack <directory-stack>`
|