The pwd Command in Linux with examples

The pwd Command in Linux with examples

  • Linux
  • 662 Views

The pwd Command

The pwd command is used to show the output of the absolute path of your present working directory, "pwd" stands for "print working directory" .

1. Syntax

pwd

OR
echo $PWD

 

Conclusion

There are tons of other options to explore such as "-P", "-L"  you can explore.

you can run pwd --help or man pwd to explore more of pwd command: