Showing posts with label command to find the current working directory. Show all posts
Showing posts with label command to find the current working directory. Show all posts

Tuesday, January 4, 2011

pwd command in linux

pwd - Print the full directory path of the current working directory.


Syntax :

pwd [option]


Options : 

pwd command has only two options

--help - To display help message
and
--version - To display the version



Example:

# cd /usr/local/lib/ - brings you to the corresponding directory.
Then by giving pwd command without any option you can see the output like.
/usr/local/lib