pwd
stands for Print Working Listing. It prints the entire absolute path of present listing you’re in.
Whereas working with Linux recordsdata and directories, you progress round from one listing to a different. Anytime if you wish to know by which listing you’re in then, pwd
command tells you that.
Syntax
pwd [-LP]
The place L
and P
are optionally available choices.
Choices
Choices | Description |
---|---|
-L |
Shows the logical path of present working listing. This logical path consists of the symbolic hyperlink path of present working listing.
That is the default possibility, if no choices specified. |
-P |
Shows the bodily path of present working listing after resolving symbolic hyperlinks. It reveals the total pathname with out symbolic hyperlink of the present working listing. |
Word: When no possibility is specified with the command pwd
, it robotically considers -L
into motion.
Examples
Allow us to strive some enjoyable with pwd
command and see the place we exist.
To know present working listing simply hit both pwd
or pwd -L
in any listing.
pwd
or pwd -L
each are equal.
Allow us to now strive pwd
with -P
possibility. Because it shows the bodily path of present working listing after resolving symbolic hyperlinks. Therefore we have to create a symbolic hyperlink to check.
Be happy to drop you feedback solutions in feedback part.
Pleased coding ??