Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.87 KB

pwd.md

File metadata and controls

42 lines (26 loc) · 1.87 KB

pwd

print the current working directory pwd

Basic Usage

Print the current working directory: pwd

Resolve Symbolic Links

Show the physical location of the current working directory by using the -P flag: $ ls -aF total 8 drwxr-xr-x 2 tyrion group 68 Feb 3 16:05 directory/ lrwxr-xr-x 1 tyrion group 9 Feb 3 16:05 link-to-directory@ -> directory $ cd /Users/tyrion/link-to-directory $ pwd /Users/tyrion/link-to-directory $ pwd -P /Users/tyrion/directory

pwd

Print name of current/working directory.

  • Print the current directory:

    pwd

  • Print the current directory, and resolve all symlinks (i.e. show the "physical" path):

    pwd -P

Show the absolute path of your current working directory:

pwd