After launching terminal in Linux, the command prompt will start at currently logged in user home directory. In this cause our present working directory is /home/haider, present working directory will change as you move to other directory.
Using the pwd command, you can check the complete path of your present working directory at any point.
Letâ€™s see practical example:
Above Example showing output of pwd command, this is showing full path of present working directory.
First output showing full path of user â€œhaiderâ€ home directory which is /home/haider after changing to BroExperts directory which is inside the â€œhaiderâ€ directory. Now pwd output showing present working directory full path is:
Next: Linux Command Line (CLI)
I am Hafiz Haider, co-founder of BroExperts.com. A Computer Geek and a certified Linux enthusiast (RHCE, RHCSA), who strongly believes in sharing knowledge.. You can reach me at email@example.com.