pwd command tutorial in linux/unix with examples and use cases

linux pwd command – print name of current/working directory

Linux pwd command is mainly used to print the full filename of the current working directory.

Syntax

pwd [OPTION]…

Options

  • -L, –logical
    use PWD from environment, even if it contains symlinks
  • -P, –physical
    avoid all symlinks

Examples & Use Cases

Print the full filename of the current working directory

➜  pwd

This entry was posted in File & Directory and tagged , . Bookmark the permalink.