pwd Command in Linux

man command print current working directory.

pwd Command in Linux

PWD command full name means of Print Working Directory. It prints the path of the current working directory, starting from the root.

$PWD is an environment variable that stores the path of the current working directory.

Syntax:

pwd [options]
Syntax

pwd command show output
PWD command show output

Options:

all options in pwd command
all options in the PWD command
  • pwd -L: Use PWD from the environment, even if it contains symbolic links.
  • pwd -P: Avoid all symbolic links.

Note: pwd -L  and pwd -P flag / option work with Ln Command.


  • pwd --help: pwd help flag display help page inside your Cmd Tool.
pwd command --help flag output

  • pwd version: Print pwd Command Version.
pwd version flag output

  • man pwd:  Read pwd Manual Page Use with -man Command.
pwd command man flag output

Hire me:

Fiverr:
https://www.fiverr.com/users/officialrajdeep/

Upwork:
https://www.upwork.com/freelancers/~01a4e8ba7a41795229


Conclusion

pwd command only uses for the print current working directory file path.

If you have any questions or feedback, feel free to leave a comment below.


Contact me