pwd command in Linux – syntax, options, use and example – Codeforwin


pwd command in Linux – syntax, choices, use and example -Codeforwin

pwd stands for Print Working Directory. It prints the whole absolute path of present listing you’re in.

While working with Linux information and directories, you progress round from one listing to a different. Anytime if you wish to know in which listing you’re in then, pwd command tells you that.

Syntax

pwd [-LP]

Where L and P are non-compulsory choices.

Options

Options Description
-L Displays the logical path of present working listing. This logical path contains the symbolic hyperlink path of present working listing.

This is the default choice, if no choices specified.

-P Displays 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.

Note: When no choice is specified with the command pwd , it mechanically considers -L into motion.

Examples

Let us try 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 command in linux

pwd or pwd -L each are equal.

Let us now try pwd with -P choice. Since it shows the bodily path of present working listing after resolving symbolic hyperlinks. Hence we have to create a symbolic hyperlink to check.

Feel free to drop you feedback solutions in comments section.

Happy coding 😉

About Bandna Paikaray

Bandna Paikaray is a trainer by occupation and doing MCA from IGNOU. Optimistic and enthusiastic even have eager curiosity in portray and singing, which comes in the primary place for her. She take pleasure in her personal firm. She consider in being actual to your self and others additionally. She at all times respect and admire creativity. Except this studying and writing is additionally what she like probably the most and can spend hours with out becoming bored. In her views being artistic is the principle key to assume out of the field and discover extra and extra.

Follow on: View all posts by Bandna Paikaray

Recommended Post

pwd command in Linux – syntax, choices, use and example – Codeforwin
Source link

Have any Question or Comment?

Leave a Reply

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

Categories

You have successfully subscribed to myprogrammingschool

There was an error while trying to send your request. Please try again.

My Programming School will use the information you provide on this form to be in touch with you and to provide updates and marketing.