Table of Contents
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.
P are non-compulsory choices.
||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.
||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.
Let us try some enjoyable with
pwd command and see the place we exist.
To know present working listing simply hit both
pwd -L in any listing.
pwd -L each are equal.
Let us now try
-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 😉
- Introduction to C Programming – Setup CodeBlocks
- Learn to Write Your First C Program – Print Hello Computer
- Understand C Variables with Flowcharts and Examples
- C Datatypes Explained with Flowcharts and Examples
- C Operators Learn the Basics of Programming Step by Step
- C Decision Making: If, If-Else, Switch-Case Statements
- C While and Do-While Loops Explained with Examples
- C For Loop – Learn Its Purpose with Flowchart, and Example
- Word Frequency in a Python String | Multiple Techniqes – My programming school
- How C Programming Contributes To Machine Learning and it’s Algorithms – Codeforwin