[sourcecode language="php"]
# show full path of current dir in linux command prompt
PS1="[\u@\h \w]\\$ "
[/sourcecode]
Categories
Showing the path in the Linux command prompt
![](http://www.tutorius.com/wp-content/uploads/2011/03/150px-Tux_svg-e1299791236468.png)
[sourcecode language="php"]
# show full path of current dir in linux command prompt
PS1="[\u@\h \w]\\$ "
[/sourcecode]