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

Add a Comment

Your email address will not be published. Required fields are marked *